summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
Diffstat (limited to 'sax')
-rw-r--r--sax/source/tools/converter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index fd450affb5f4..be9992d470ac 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -778,7 +778,7 @@ bool Converter::convertDuration(double& rfTime,
if ( *(pStr++) != 'P' ) // duration must start with "P"
return false;
- OUString sDoubleStr;
+ OUStringBuffer sDoubleStr;
bool bSuccess = true;
bool bDone = false;
bool bTimePart = false;
@@ -807,7 +807,7 @@ bool Converter::convertDuration(double& rfTime,
}
else
{
- sDoubleStr += OUStringLiteral1(c);
+ sDoubleStr.append(c);
}
}
}
@@ -870,7 +870,7 @@ bool Converter::convertDuration(double& rfTime,
double fHour = nHours;
double fMin = nMins;
double fSec = nSecs;
- double fFraction = sDoubleStr.toDouble();
+ double fFraction = sDoubleStr.makeStringAndClear().toDouble();
double fTempTime = fHour / 24;
fTempTime += fMin / (24 * 60);
fTempTime += fSec / (24 * 60 * 60);