summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-06-13 20:52:19 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-06-13 20:52:19 +0200
commit00c9fe2cfc2ac94a26dc565525abc98f581e8bc3 (patch)
tree74e6f3fbcbd47ccfb52464e9e75d8ba56a718bb3 /forms
parentb72c6d89ec487355a34f7b76103c611e1114f2f7 (diff)
cppcheck: fix reassignments
Change-Id: Ic9a994ccd00f4ca938a93bce000313495f2c31c8
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/convert.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index 6dac9298aa6a..285b3a7d1f88 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -276,11 +276,9 @@ namespace
// ------------------------------------------------------------------------
UNODate lcl_toUNODate( const OUString& rString )
{
- bool bWellformed = true;
-
UNODate aDate( 1, 1, 1900 );
- bWellformed = ISO8601parseDate(rString, aDate);
+ bool bWellformed = ISO8601parseDate(rString, aDate);
// sanity checks
if ( ( aDate.Year > 9999 ) || ( aDate.Month < 1 ) || ( aDate.Month > 12 ) || ( aDate.Day < 1 ) || ( aDate.Day > 31 ) )
@@ -340,11 +338,9 @@ namespace
// ------------------------------------------------------------------------
UNOTime lcl_toUNOTime( const OUString& rString )
{
- bool bWellformed = true;
-
UNOTime aTime( 0, 0, 0, 0 );
- bWellformed = ISO8601parseTime(rString, aTime);
+ bool bWellformed = ISO8601parseTime(rString, aTime);
// sanity checks
// note that Seconds == 60 denotes leap seconds. Normally, they're not allowed everywhere,