summaryrefslogtreecommitdiff
path: root/idlc/source/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/source/parser.y')
-rw-r--r--idlc/source/parser.y10
1 files changed, 7 insertions, 3 deletions
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index a9267ac17ad5..400778026c9c 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -61,6 +61,7 @@
using ::rtl::OUString;
using ::rtl::OString;
+using ::rtl::OStringToOUString;
using ::rtl::OStringBuffer;
extern int yylex(void);
@@ -896,7 +897,8 @@ attribute_get_raises:
IDL_GET raises ';'
{
$$.documentation = new rtl::OUString(
- rtl::OUString::fromUtf8(idlc()->getDocumentation()));
+ rtl::OStringToOUString(
+ idlc()->getDocumentation(), RTL_TEXTENCODING_UTF8));
$$.exceptions = $2;
}
;
@@ -918,7 +920,8 @@ attribute_set_raises:
raises ';'
{
$$.documentation = new rtl::OUString(
- rtl::OUString::fromUtf8(idlc()->getDocumentation()));
+ rtl::OStringToOUString(
+ idlc()->getDocumentation(), RTL_TEXTENCODING_UTF8));
$$.exceptions = $3;
}
;
@@ -1200,7 +1203,8 @@ interface_inheritance_decl:
} else {
addInheritedInterface(
ifc, *$4, $1,
- rtl::OUString::fromUtf8(idlc()->getDocumentation()));
+ rtl::OStringToOUString(
+ idlc()->getDocumentation(), RTL_TEXTENCODING_UTF8));
}
delete $4;
}