summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/runtime/methods1.cxx')
-rw-r--r--basic/source/runtime/methods1.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index e12a69f0e94a..b9f83b76a025 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -2013,17 +2013,17 @@ static IntervalInfo pIntervalTable[] =
IntervalInfo* getIntervalInfo( const OUString& rStringCode )
{
- IntervalInfo* pInfo = NULL;
+ IntervalInfo* pInfo;
sal_Int16 i = 0;
while( !(pInfo = pIntervalTable + i)->mStringCode.isEmpty() )
{
if( rStringCode.equalsIgnoreAsciiCase( pInfo->mStringCode ) )
{
- break;
+ return pInfo;
}
i++;
}
- return pInfo;
+ return NULL;
}
inline void implGetDayMonthYear( sal_Int16& rnYear, sal_Int16& rnMonth, sal_Int16& rnDay, double dDate )