[Libreoffice-commits] .: editeng/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Oct 7 08:53:23 PDT 2011
editeng/source/rtf/svxrtf.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 49cfdc8796b5b473032dd75f062faaec21f547b7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Oct 7 16:53:14 2011 +0100
WaE: could do away with nToken altogether, but this is more readable
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index 1605c9f..e249053 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -670,7 +670,8 @@ util::DateTime SvxRTFParser::GetDateTimeStamp( )
while( bWeiter && IsParserWorking() )
{
- switch( int nToken = GetNextToken() )
+ int nToken = GetNextToken();
+ switch( nToken )
{
case RTF_YR: aDT.Year = (sal_uInt16)nTokenValue; break;
case RTF_MO: aDT.Month = (sal_uInt16)nTokenValue; break;
More information about the Libreoffice-commits
mailing list