summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2012-06-07 19:19:49 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-06-12 12:08:33 +0100
commitd2a02df2f9725a1884131c0ab415a2b122a44420 (patch)
treefade00529acc02169c224d871b110577694b95f9 /l10ntools
parent4019acf2974b58210ffc1b1975720553e7b5d337 (diff)
cppcheck: Avoid unused variables code warnings
Change-Id: I51ba83c5356f2eb33ed09f6516de9f004678bc8f
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/help/HelpLinker.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/l10ntools/source/help/HelpLinker.cxx b/l10ntools/source/help/HelpLinker.cxx
index a95c56be1b6f..6d150a8f1f4f 100644
--- a/l10ntools/source/help/HelpLinker.cxx
+++ b/l10ntools/source/help/HelpLinker.cxx
@@ -642,8 +642,11 @@ void HelpLinker::link() throw( HelpProcessingException )
const std::string &additionalFileKey = enumer->first;
fs::path fsAdditionalFileName( additionalFileName, fs::native );
- std::string aNativeStr = fsAdditionalFileName.native_file_string();
- HCDBG(const char* pStr = aNativeStr.c_str(); std::cerr << pStr << std::endl);
+ HCDBG({
+ std::string aNativeStr = fsAdditionalFileName.native_file_string();
+ const char* pStr = aNativeStr.c_str();
+ std::cerr << pStr << std::endl;
+ });
fs::path fsTargetName( indexDirParentName / additionalFileKey );