summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-05-22 13:08:14 -0400
committerTomaž Vajngerl <quikee@gmail.com>2014-05-22 15:10:57 -0500
commit4fbbfc2269d9671415efea2d946176abb83c5930 (patch)
treeb005bf027887b54d3489ac3b2a8a57eb3b9f4454
parentc0765d1b5e317ec542be8285649c2c2a70892eff (diff)
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@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--sal/osl/unx/profile.cxx2
-rw-r--r--unotools/source/config/fontcfg.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index 66846627b4bd..70505da6ec03 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 fccab2d71125..e442870faa75 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 ) {}
}
}