Kaydet (Commit) 564f2e4f authored tarafından Noel Grandin's avatar Noel Grandin

convert vcl/unohelp2.hxx from String to OUString

Change-Id: I9e0d4d68135ee740af1239d7070dbb4329dda866
üst 6549516e
......@@ -37,13 +37,13 @@ namespace vcl { namespace unohelper {
public ::cppu::OWeakObject
{
private:
String maText;
OUString maText;
public:
TextDataObject( const String& rText );
TextDataObject( const OUString& rText );
~TextDataObject();
String& GetString() { return maText; }
OUString& GetString() { return maText; }
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
......@@ -57,7 +57,7 @@ namespace vcl { namespace unohelper {
/// copies a given string to a given clipboard
static void CopyStringTo(
const String& rContent,
const OUString& rContent,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& rxClipboard
);
};
......
......@@ -30,7 +30,7 @@ using namespace ::com::sun::star;
namespace vcl { namespace unohelper {
TextDataObject::TextDataObject( const String& rText ) : maText( rText )
TextDataObject::TextDataObject( const OUString& rText ) : maText( rText )
{
}
......@@ -38,7 +38,7 @@ namespace vcl { namespace unohelper {
{
}
void TextDataObject::CopyStringTo( const String& rContent,
void TextDataObject::CopyStringTo( const OUString& rContent,
const uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
{
DBG_ASSERT( rxClipboard.is(), "TextDataObject::CopyStringTo: invalid clipboard!" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment