summaryrefslogtreecommitdiff
path: root/scripting/source/inc
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-01-30 11:44:23 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-30 12:54:40 +0000
commit97eb8a6e0eb830f37dcba64a51d725aab4c5ff53 (patch)
treea1a95b8249052d846a997ad1729758168d6a3b24 /scripting/source/inc
parentf8569cd9a28a3a8856dba4ad53218aa6cc073521 (diff)
Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: https://gerrit.libreoffice.org/1924 Tested-by: Luboš Luňák <l.lunak@suse.cz> Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'scripting/source/inc')
-rw-r--r--scripting/source/inc/util/MiscUtils.hxx4
-rw-r--r--scripting/source/inc/util/util.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/scripting/source/inc/util/MiscUtils.hxx b/scripting/source/inc/util/MiscUtils.hxx
index 657355c9aaf5..e78071c18eee 100644
--- a/scripting/source/inc/util/MiscUtils.hxx
+++ b/scripting/source/inc/util/MiscUtils.hxx
@@ -55,7 +55,7 @@ public:
return result;
}
css::uno::Reference < css::ucb::XSimpleFileAccess3 > xSFA( css::ucb::SimpleFileAccess::create(xCtx) );
- result = xSFA->getFolderContents( OUSTR("vnd.sun.star.tdoc:/"), true );
+ result = xSFA->getFolderContents( "vnd.sun.star.tdoc:/", true );
}
catch ( css::uno::Exception& )
{
@@ -111,7 +111,7 @@ public:
try
{
::ucbhelper::Content root( url, NULL, comphelper::getProcessComponentContext() );
- ::rtl::OUString propName = OUSTR("DocumentModel");
+ ::rtl::OUString propName = "DocumentModel";
result = getUCBProperty( root, propName );
}
catch ( css::ucb::ContentCreationException& )
diff --git a/scripting/source/inc/util/util.hxx b/scripting/source/inc/util/util.hxx
index a6afecca8b02..5dd38b86c85c 100644
--- a/scripting/source/inc/util/util.hxx
+++ b/scripting/source/inc/util/util.hxx
@@ -21,8 +21,6 @@
#ifndef _COM_SUN_STAR_SCRIPTING_UTIL_UTIL_HXX_
#define _COM_SUN_STAR_SCRIPTING_UTIL_UTIL_HXX_
-#define OUSTR(x) ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(x) )
-
#endif //_COM_SUN_STAR_SCRIPTING_UTIL_UTIL_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */