Kaydet (Commit) 8a8b1ae3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more toInt32 clean up

Change-Id: I4f7911cb283d67e7c7b883d629b39588e96f32c2
üst 5a0781a2
......@@ -86,7 +86,7 @@ struct lcl_OUStringRestToInt32 : public ::std::unary_function< OUString, sal_Int
{
if( m_nPrefixLength > rStr.getLength() )
return 0;
return rStr.copy( m_nPrefixLength ).toInt32( 10 /* radix */ );
return rStr.copy( m_nPrefixLength ).toInt32();
}
private:
sal_Int32 m_nPrefixLength;
......
......@@ -318,7 +318,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara)
XFEntry* pEntry = new XFEntry;
pEntry->SetEntryType(enumXFEntryTOC);
pEntry->SetStringValue(sText);
pEntry->SetOutlineLevel(sLevel.toInt32(10));
pEntry->SetOutlineLevel(sLevel.toInt32());
pXFPara->Add(pEntry);
}
}
......
......@@ -291,13 +291,13 @@ Date SAL_CALL OResultSet::getDate(sal_Int32 column)
token = dateString.getToken (0, '-', nIndex);
switch (i) {
case 0:
d.Year = static_cast<sal_uInt16>(token.toInt32(10));
d.Year = static_cast<sal_uInt16>(token.toUInt32());
break;
case 1:
d.Month = static_cast<sal_uInt16>(token.toInt32(10));
d.Month = static_cast<sal_uInt16>(token.toUInt32());
break;
case 2:
d.Day = static_cast<sal_uInt16>(token.toInt32(10));
d.Day = static_cast<sal_uInt16>(token.toUInt32());
break;
default:;
}
......@@ -566,13 +566,13 @@ Time SAL_CALL OResultSet::getTime(sal_Int32 column)
token = timeString.getToken (0, ':', nIndex);
switch (i) {
case 0:
t.Hours = static_cast<sal_uInt16>(token.toInt32(10));
t.Hours = static_cast<sal_uInt16>(token.toUInt32());
break;
case 1:
t.Minutes = static_cast<sal_uInt16>(token.toInt32(10));
t.Minutes = static_cast<sal_uInt16>(token.toUInt32());
break;
case 2:
t.Seconds = static_cast<sal_uInt16>(token.toInt32(10));
t.Seconds = static_cast<sal_uInt16>(token.toUInt32());
break;
}
i++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment