diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 15:03:07 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:44 +0200 |
commit | b94d6e85c54e21431d25cc579de30ad58759b5a2 (patch) | |
tree | cd4026ed7403d35f22e0b3eb4fbaa7310679d7ca /forms | |
parent | b24adf82ce21ac91851a73c84680447a16feb53b (diff) |
cppcheck reduce scope of var in forms/...convert.cxx
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/convert.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx index f0db80bdaacc..4fa42509be2e 100644 --- a/forms/source/xforms/convert.cxx +++ b/forms/source/xforms/convert.cxx @@ -388,9 +388,9 @@ namespace if ( sFractional.getLength() > 2 ) // our precision is HundrethSeconds - it's all a css.util.Time can hold sFractional = sFractional.copy( 0, 2 ); - sal_Int32 nFractional = 0; if ( sFractional.getLength() ) { + sal_Int32 nFractional = 0; if ( StringTokenizer( sFractional, 0 ).getNextToken().toInt32( nFractional ) ) { aTime.HundredthSeconds = (sal_uInt16)nFractional; |