summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2018-02-16 12:39:02 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2018-02-16 12:39:02 +0100
commitd14029823bf4be658affed6c0a413b45534e5cfe (patch)
treee52a8d9096443f10e226881147fc014813e9da64
parent785cca646211feed9c238cf8d219687b85552546 (diff)
downloadATCD-d14029823bf4be658affed6c0a413b45534e5cfe.tar.gz
Initialise member to solve Codacy warning
* ACE/tests/Compiler_Features_38_Test.cpp:
-rw-r--r--ACE/tests/Compiler_Features_38_Test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp
index b2a03655833..aae2d5a330e 100644
--- a/ACE/tests/Compiler_Features_38_Test.cpp
+++ b/ACE/tests/Compiler_Features_38_Test.cpp
@@ -9,7 +9,7 @@ template <typename T>
class Foo_T
{
public:
- Foo_T () {};
+ Foo_T () : member() {};
typedef T& T_elem;
T_elem operator[] (long) { return member; }
operator T *& () { return & member; };
@@ -29,7 +29,7 @@ run_main (int, ACE_TCHAR *[])
ACE_START_TEST (ACE_TEXT("Compiler_Features_38_Test"));
Foo2Seq f2;
- long j = f2[0].i;
+ long const j = f2[0].i;
ACE_UNUSED_ARG(j);
ACE_DEBUG ((LM_INFO,