diff options
author | David Tardon <dtardon@redhat.com> | 2011-01-25 08:27:35 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-01-25 08:27:35 +0100 |
commit | f5c7a1e496e9dcacd0f1edf1269f0cd9f78364f1 (patch) | |
tree | 42545f7ea8dc60bdbe7a14c8dede6cd6f0124bb8 /autodoc | |
parent | d191369480dba43428df46010fa0a5257b133cc7 (diff) |
WaE: uninitialized const
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/source/ary/idl/i_ce.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/autodoc/source/ary/idl/i_ce.cxx b/autodoc/source/ary/idl/i_ce.cxx index 3d4503887124..8a0de924b47c 100644 --- a/autodoc/source/ary/idl/i_ce.cxx +++ b/autodoc/source/ary/idl/i_ce.cxx @@ -40,13 +40,6 @@ namespace ary namespace idl { -namespace -{ - const Ce_2s aConstCe2sDummy; -} - - - CodeEntity::CodeEntity() : aDocu(), p2s(0) @@ -60,9 +53,7 @@ CodeEntity::~CodeEntity() const Ce_2s & CodeEntity::Secondaries() const { - if (p2s) - return *p2s; - return aConstCe2sDummy; + return const_cast<CodeEntity*>(this)->Secondaries(); } Ce_2s & @@ -74,9 +65,6 @@ CodeEntity::Secondaries() return *p2s; } - - - } // namespace idl } // namespace ary |