[Libreoffice-commits] .: l10ntools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Feb 16 00:45:29 PST 2011
l10ntools/source/cfgmerge.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 06804c0fc64e5bf8a4e9939545ce8bdc427c5bb2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Feb 16 08:45:20 2011 +0000
WaE: ambiguous {
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx
index c441ccd..2f7cff9 100644
--- a/l10ntools/source/cfgmerge.cxx
+++ b/l10ntools/source/cfgmerge.cxx
@@ -337,10 +337,12 @@ CfgStackData *CfgStack::GetStackData( size_t nPos )
/*****************************************************************************/
{
if ( nPos == LIST_APPEND )
- if (maList.size())
+ {
+ if (!maList.empty())
nPos = maList.size() - 1;
else
return 0;
+ }
return maList[ nPos ];
}
More information about the Libreoffice-commits
mailing list