[gnome-commander/Implement_CppCheck_suggestions] Use explicit keyword for constructor with one argument
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/Implement_CppCheck_suggestions] Use explicit keyword for constructor with one argument
- Date: Mon, 8 Apr 2019 19:55:56 +0000 (UTC)
commit 7498f92577a5c09845192d322f015d4d673419a5
Author: Uwe Scholz <u scholz83 gmx de>
Date: Mon Apr 8 20:46:53 2019 +0200
Use explicit keyword for constructor with one argument
src/gnome-cmd-user-actions.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.h b/src/gnome-cmd-user-actions.h
index 655a9969..a39fffeb 100644
--- a/src/gnome-cmd-user-actions.h
+++ b/src/gnome-cmd-user-actions.h
@@ -1,4 +1,4 @@
-/**
+/**
* @file gnome-cmd-user-actions.h
* @copyright (C) 2001-2006 Marcus Bjurman\n
* @copyright (C) 2007-2012 Piotr Eljasiak\n
@@ -183,13 +183,13 @@ class GnomeCmdUserActions
struct const_iterator: ACTIONS_COLL::iterator
{
- const_iterator (const ACTIONS_COLL::iterator &i): ACTIONS_COLL::iterator(i) {}
+ explicit const_iterator (const ACTIONS_COLL::iterator &i): ACTIONS_COLL::iterator(i) {}
const ACTIONS_COLL::key_type &operator * () const { return
(ACTIONS_COLL::iterator::operator * ()).first; }
};
- const_iterator begin() { return action.begin();
}
- const_iterator end() { return action.end();
}
+ const_iterator begin() { return (const_iterator)
action.begin(); }
+ const_iterator end() { return (const_iterator)
action.end(); }
unsigned size() { return action.size();
}
const gchar *name(const_iterator &i) { return
action_func[i->second.func].c_str(); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]