summaryrefslogtreecommitdiff
path: root/idlc/source/astoperation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/source/astoperation.cxx')
-rw-r--r--idlc/source/astoperation.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/idlc/source/astoperation.cxx b/idlc/source/astoperation.cxx
index bcc23ec14907..5a38c8acbc20 100644
--- a/idlc/source/astoperation.cxx
+++ b/idlc/source/astoperation.cxx
@@ -48,11 +48,12 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
if (m_pReturnType == 0) {
returnTypeName = "void";
} else {
- returnTypeName = OUString::fromUtf8(m_pReturnType->getRelativName());
+ returnTypeName = OStringToOUString(
+ m_pReturnType->getRelativName(), RTL_TEXTENCODING_UTF8);
}
rBlob.setMethodData(
index, getDocumentation(), methodMode,
- OUString::fromUtf8(getLocalName()),
+ OStringToOUString(getLocalName(), RTL_TEXTENCODING_UTF8),
returnTypeName, nParam, nExcep);
if ( nParam )
@@ -90,8 +91,11 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
rBlob.setMethodParameterData(
index, paramIndex++, paramMode,
- OUString::fromUtf8(pDecl->getLocalName()),
- OUString::fromUtf8(pParam->getType()->getRelativName()));
+ OStringToOUString(
+ pDecl->getLocalName(), RTL_TEXTENCODING_UTF8),
+ OStringToOUString(
+ pParam->getType()->getRelativName(),
+ RTL_TEXTENCODING_UTF8));
}
++iter;
}
@@ -106,7 +110,8 @@ bool AstOperation::dumpBlob(typereg::Writer & rBlob, sal_uInt16 index)
{
rBlob.setMethodExceptionTypeName(
index, exceptIndex++,
- OUString::fromUtf8((*iter)->getRelativName()));
+ OStringToOUString(
+ (*iter)->getRelativName(), RTL_TEXTENCODING_UTF8));
++iter;
}
}