[Libreoffice-commits] core.git: sal/osl unotools/source
Douglas Mencken
dougmencken at gmail.com
Thu May 22 13:11:20 PDT 2014
sal/osl/unx/profile.cxx | 2 +-
unotools/source/config/fontcfg.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4fbbfc2269d9671415efea2d946176abb83c5930
Author: Douglas Mencken <dougmencken at gmail.com>
Date: Thu May 22 13:08:14 2014 -0400
WoE: while (..) {} instead of while(..);
"warning: suggest a space before ';' or explicit braces around empty body"
Change-Id: I71a55cc888d3480217621491ecace7d0af3dca6e
Reviewed-on: https://gerrit.libreoffice.org/9441
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
Tested-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index 6684662..70505da 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -1133,7 +1133,7 @@ static sal_Char* OslProfile_getLine(osl_TFile* pFile)
pFile->m_pReadPtr = pChr;
}
- while (Max > 0);
+ while (Max > 0) ;
return pLine;
}
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index fccab2d..e442870 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -700,7 +700,7 @@ static bool ImplKillTrailingWithExceptions( OUString& rName, const char* const*
else
{
// skip exception strings
- while( *++ppStr );
+ while( *++ppStr ) {}
}
}
More information about the Libreoffice-commits
mailing list