diff options
author | Siqi Liu <me@siqi.fr> | 2015-03-09 12:51:54 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:00 +0100 |
commit | bd03308ba9e299e54a55b51ad464fc4afaca9f91 (patch) | |
tree | f0aaadab6f2ec80adb1f1f4c8e0834dc52e39652 /sw/source/uibase/wrtsh | |
parent | e6264466cb7ba2eca6887859dbe059ced0575dd6 (diff) |
use toUtf8 instead for string conversion
Change-Id: I1ec96957fba161a35ec2cf44f197ed3d7199dd89
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index b909f0579978..bc04ad52e733 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -472,10 +472,8 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, sal_uInt16 nFilter, return; // We are doing tiledRendering, let the client handles the URL loading. - if (rVSh.isTiledRendering()) - { - rVSh.libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, - OUStringToOString(rURL, RTL_TEXTENCODING_UTF8).getStr()); + if (rVSh.isTiledRendering()) { + rVSh.libreOfficeKitCallback(LOK_CALLBACK_HYPERLINK_CLICKED, rURL.toUtf8().getStr()); return; } |