diff options
author | jan iversen <jani@documentfoundation.org> | 2016-03-23 17:12:11 +0100 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-23 17:20:15 +0100 |
commit | 11231f9179db9821effc884e8adade48fdf89938 (patch) | |
tree | 4590559f7d249e1647fd05fff9753e19c431a56a /l10ntools/source/gConvSrc.cxx | |
parent | a5728dca0926ccad4f87e62da76483565d70d649 (diff) |
genlang, removed clang problems
The clang plugin does not not like
for (<foo>;<foo>;<foo>) ;
(most compilers do not complain, when using the ' ')
Also a virtual destructor need "override" in the
implementing class.
Change-Id: Ib99702f11dbd24595935594ee97c136c8e604aff
Diffstat (limited to 'l10ntools/source/gConvSrc.cxx')
-rw-r--r-- | l10ntools/source/gConvSrc.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/l10ntools/source/gConvSrc.cxx b/l10ntools/source/gConvSrc.cxx index d73bd4d137c6..04b32bcca20b 100644 --- a/l10ntools/source/gConvSrc.cxx +++ b/l10ntools/source/gConvSrc.cxx @@ -269,9 +269,10 @@ void convert_src::trim(string& sText) while (sText[0] == ' ' || sText[0] == '\t') sText.erase(0,1); - for (nL = sText.size(); sText[nL-1] == ' ' || sText[nL-1] == '\t'; --nL); - if (nL != (int)sText.size()) - sText.erase(nL); + for (nL = sText.size(); sText[nL-1] == ' ' || sText[nL-1] == '\t'; --nL) + ; + if (nL != (int)sText.size()) + sText.erase(nL); } |