diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 07:58:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 15:37:20 +0000 |
commit | 905b84557d8ccbdba07f0a82a89f382db08fc0d9 (patch) | |
tree | faa75a00d10758bc864f0bf20cd5093969f50db1 /l10ntools | |
parent | d6bf32bab10e1bb115aea0c6e5d6ac1753760fe7 (diff) |
refresh unused code list
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/export.hxx | 2 | ||||
-rw-r--r-- | l10ntools/source/merge.cxx | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index 6b749fca29bc..b3fc196b9b11 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -492,7 +492,7 @@ class MergeDataFile sal_Bool bErrorLog; ByteString sErrorLog; SvFileStream aErrLog; - MergeDataHashMap aMap; + MergeDataHashMap aMap; std::set<ByteString> aLanguageSet; MergeData *GetMergeData( ResData *pResData , bool bCaseSensitve = false ); diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index f2193155a070..a31ff9491326 100644 --- a/l10ntools/source/merge.cxx +++ b/l10ntools/source/merge.cxx @@ -238,6 +238,8 @@ MergeDataFile::MergeDataFile( MergeDataFile::~MergeDataFile() { + for (MergeDataHashMap::iterator aI = aMap.begin(), aEnd = aMap.end(); aI != aEnd; ++aI) + delete aI->second; } ByteString MergeDataFile::Dump(){ @@ -248,7 +250,7 @@ ByteString MergeDataFile::Dump(){ for( idbg = aMap.begin() ; idbg != aMap.end(); ++idbg ) { printf("aMap[ %s ] = ",idbg->first.GetBuffer()); - ((MergeData*) (idbg->second))->Dump(); + idbg->second->Dump(); printf("\n"); } printf("\n"); |