[gnome-commander/Implement_CppCheck_suggestions: 6/7] Use explicit keyword for constructor of the DICT class
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/Implement_CppCheck_suggestions: 6/7] Use explicit keyword for constructor of the DICT class
- Date: Tue, 12 Mar 2019 19:49:50 +0000 (UTC)
commit 4bd275efb45369f20ee35fd6adda93a8a2728434
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Mar 12 15:40:52 2019 +0100
Use explicit keyword for constructor of the DICT class
src/dict.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dict.h b/src/dict.h
index c3f349a7..05d866f5 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -101,7 +101,7 @@ class DICT<T,T>
public:
- DICT(const T no_val=T()): NO_VALUE(no_val) {}
+ explicit DICT(const T no_val = T()): NO_VALUE(no_val) {}
void add(const T k, const T &v);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]