[Libreoffice-commits] core.git: sc/source sd/source sw/source

Pranav Kant pranavk at collabora.co.uk
Wed Feb 22 13:58:39 UTC 2017


 sc/source/ui/unoobj/docuno.cxx    |    2 +-
 sd/source/ui/unoidl/unomodel.cxx  |    2 +-
 sw/source/uibase/uno/unotxdoc.cxx |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 46b5dff4db336df2ff6496d91b0a2c559c6a9592
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Wed Feb 22 19:26:28 2017 +0530

    lok: these are not always plain ascii
    
    Change-Id: I9783b6b2839805189015dbad8a97128c89e0a4a9

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 848fb26..353ddec 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1027,7 +1027,7 @@ OUString ScModelObj::getPostIts()
     std::stringstream aStream;
     boost::property_tree::write_json(aStream, aTree);
 
-    return OUString::createFromAscii(aStream.str().c_str());
+    return OUString::fromUtf8(aStream.str().c_str());
 }
 
 void ScModelObj::initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& /*rArguments*/)
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index ec701f0..f997ac7 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2398,7 +2398,7 @@ OUString SdXImpressDocument::getPostIts()
     std::stringstream aStream;
     boost::property_tree::write_json(aStream, aTree);
 
-    return OUString::createFromAscii(aStream.str().c_str());
+    return OUString::fromUtf8(aStream.str().c_str());
 }
 
 void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index cd1e00c..4c18778d 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3224,7 +3224,7 @@ OUString SwXTextDocument::getPostIts()
     std::stringstream aStream;
     boost::property_tree::write_json(aStream, aTree);
 
-    return OUString::createFromAscii(aStream.str().c_str());
+    return OUString::fromUtf8(aStream.str().c_str());
 }
 
 int SwXTextDocument::getPart()


More information about the Libreoffice-commits mailing list