cppcheck: fix reassignments
Change-Id: Ic9a994ccd00f4ca938a93bce000313495f2c31c8
This commit is contained in:
parent
b72c6d89ec
commit
00c9fe2cfc
@ -276,11 +276,9 @@ namespace
|
|||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
UNODate lcl_toUNODate( const OUString& rString )
|
UNODate lcl_toUNODate( const OUString& rString )
|
||||||
{
|
{
|
||||||
bool bWellformed = true;
|
|
||||||
|
|
||||||
UNODate aDate( 1, 1, 1900 );
|
UNODate aDate( 1, 1, 1900 );
|
||||||
|
|
||||||
bWellformed = ISO8601parseDate(rString, aDate);
|
bool bWellformed = ISO8601parseDate(rString, aDate);
|
||||||
|
|
||||||
// sanity checks
|
// sanity checks
|
||||||
if ( ( aDate.Year > 9999 ) || ( aDate.Month < 1 ) || ( aDate.Month > 12 ) || ( aDate.Day < 1 ) || ( aDate.Day > 31 ) )
|
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 )
|
UNOTime lcl_toUNOTime( const OUString& rString )
|
||||||
{
|
{
|
||||||
bool bWellformed = true;
|
|
||||||
|
|
||||||
UNOTime aTime( 0, 0, 0, 0 );
|
UNOTime aTime( 0, 0, 0, 0 );
|
||||||
|
|
||||||
bWellformed = ISO8601parseTime(rString, aTime);
|
bool bWellformed = ISO8601parseTime(rString, aTime);
|
||||||
|
|
||||||
// sanity checks
|
// sanity checks
|
||||||
// note that Seconds == 60 denotes leap seconds. Normally, they're not allowed everywhere,
|
// note that Seconds == 60 denotes leap seconds. Normally, they're not allowed everywhere,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user