summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/cmis
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-23 23:10:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-23 23:11:02 +0100
commitd689ad29c28ad7f077c2239a8fa4c2b6307a6aa1 (patch)
treed66cc700033fe101357b386f1e028101f64049ee /ucb/source/ucp/cmis
parent5645c15d3df900f65a1d9513155ee38743c543fa (diff)
New o3tl::runtimeToOUString to convert from C++ runtime NTBS to OUString
Change-Id: I613bb70b6828f615fd45af38b2d873ece55ace60
Diffstat (limited to 'ucb/source/ucp/cmis')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index c3fca0792a7d..c5fa4a555c82 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -43,6 +43,7 @@
#include <comphelper/processfactory.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <config_oauth2.h>
+#include <o3tl/runtimetooustring.hxx>
#include <ucbhelper/cancelcommandexecution.hxx>
#include <ucbhelper/content.hxx>
#include <ucbhelper/contentidentifier.hxx>
@@ -1133,7 +1134,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
return aRet;
}
@@ -1199,7 +1200,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
return aRet;
}
@@ -1240,7 +1241,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
return uno::Sequence< document::CmisVersion > ( );
}
@@ -1449,7 +1450,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
sal_Int32 nCount = rValues.getLength();
@@ -1517,7 +1518,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
return aRet;
@@ -1564,7 +1565,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
return true;
@@ -1843,7 +1844,7 @@ namespace cmis
ucb::IOErrorCode_GENERAL,
uno::Sequence< uno::Any >( 0 ),
xEnv,
- OUString::createFromAscii( e.what() ) );
+ o3tl::runtimeToOUString(e.what()));
}
}
else if ( aCommand.Name == "checkout" )