summaryrefslogtreecommitdiff
path: root/shell/qa
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-19 19:34:59 +0100
committerGert Faller <gertfaller@aliceadsl.fr>2010-11-19 19:34:59 +0100
commit60fec7754d70f0527d6ae80455b4ca876b7d451b (patch)
treecdc391e4422ff7220c889bf52fc566f9e710bbc4 /shell/qa
parent0a994bff157dfdd9a879017e8ac11233cb9a7bc9 (diff)
TL_CONSTASCII_USTRINGPARAM in libs core 16
Diffstat (limited to 'shell/qa')
-rw-r--r--shell/qa/recent_docs.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/shell/qa/recent_docs.cxx b/shell/qa/recent_docs.cxx
index b5121406a318..db4e56a64ab2 100644
--- a/shell/qa/recent_docs.cxx
+++ b/shell/qa/recent_docs.cxx
@@ -46,11 +46,11 @@ using namespace rtl;
namespace syssh = SystemShell;
//########################################
-const OUString SXW_MIME_TYPE = OUString::createFromAscii("application/vnd.sun.xml.writer");
-const OUString SXC_MIME_TYPE = OUString::createFromAscii("application/vnd.sun.xml.calc");
-const OUString SXI_MIME_TYPE = OUString::createFromAscii("application/vnd.sun.xml.impress");
-const OUString SXD_MIME_TYPE = OUString::createFromAscii("application/vnd.sun.xml.draw");
-const OUString SXM_MIME_TYPE = OUString::createFromAscii("application/vnd.sun.xml.math");
+const OUString SXW_MIME_TYPE(RTL_CONSTASCII_USTRINGPARAM("application/vnd.sun.xml.writer"));
+const OUString SXC_MIME_TYPE(RTL_CONSTASCII_USTRINGPARAM("application/vnd.sun.xml.calc"));
+const OUString SXI_MIME_TYPE(RTL_CONSTASCII_USTRINGPARAM("application/vnd.sun.xml.impress"));
+const OUString SXD_MIME_TYPE(RTL_CONSTASCII_USTRINGPARAM("application/vnd.sun.xml.draw"));
+const OUString SXM_MIME_TYPE(RTL_CONSTASCII_USTRINGPARAM("application/vnd.sun.xml.math"));
class Test_AddToRecentDocs : public CppUnit::TestFixture
{
@@ -66,19 +66,19 @@ public:
system("rm $HOME/.recently-used");
system("echo '<?xml version=\"1.0\"?>\n<RecentFiles>\n<RecentItem>\n<URI>file:///home/federico/gedit.txt</URI>\n<Mime-Type>text/plain</Mime-Type>\n<Timestamp>1046485966</Timestamp>\n<Groups>\n<Group>gedit</Group>\n</Groups>\n</RecentItem>\n</RecentFiles>' > $HOME/.recently-used");
- rtl::OUString url = rtl::OUString::createFromAscii("file:///home_athene/test.sxw");
+ rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxc");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxc"));
syssh::AddToRecentDocumentList(url, SXC_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxi");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxi"));
syssh::AddToRecentDocumentList(url, SXI_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxd");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxd"));
syssh::AddToRecentDocumentList(url, SXD_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxm");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxm"));
syssh::AddToRecentDocumentList(url, SXM_MIME_TYPE);
}
@@ -88,7 +88,7 @@ public:
system("rm $HOME/.recently-used");
system("echo '<?xml version=\"1.0\"?>\n<RecentFiles>\n<RecentItem>\n<URI>file:///home/federico/gedit.txt</URI>\n<Mime-Type>text/plain</Mime-Type>\n<Timestamp>1046485966</Timestamp>\n<Groups>\n<Group>gedit</Group>\n</Groups>\n<RecentItem>\n<URI>file:///home/federico/gedit2.txt</URI>\n<Mime-Type>text/plain</Mime-Type>\n<Timestamp>1046485966</Timestamp>\n<Groups>\n<Group>gedit</Group>\n</Groups>\n</RecentItem>\n</RecentFiles>' > $HOME/.recently-used");
- rtl::OUString url = rtl::OUString::createFromAscii("file:///home_athene/test.sxw");
+ rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
}
@@ -97,19 +97,19 @@ public:
{
int ret = system("rm $HOME/.recently-used");
- rtl::OUString url = rtl::OUString::createFromAscii("file:///home_athene/test.sxw");
+ rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxc");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxc"));
syssh::AddToRecentDocumentList(url, SXC_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxi");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxi"));
syssh::AddToRecentDocumentList(url, SXI_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxd");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxd"));
syssh::AddToRecentDocumentList(url, SXD_MIME_TYPE);
- url = rtl::OUString::createFromAscii("file:///home_athene/test.sxm");
+ url = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxm"));
syssh::AddToRecentDocumentList(url, SXM_MIME_TYPE);
ret = system("ls $HOME/.recently-used");
@@ -127,9 +127,9 @@ public:
if ((recently_used_url.getLength() > 0) &&
('/' != recently_used_url.pData->buffer[recently_used_url.getLength() - 1]))
- recently_used_url += rtl::OUString::createFromAscii("/");
+ recently_used_url += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
- recently_used_url += rtl::OUString::createFromAscii(".recently-used");
+ recently_used_url += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".recently-used"));
return recently_used_url;
}
@@ -159,7 +159,7 @@ public:
memset(cnt_before, 0, sizeof(cnt_before));
read_recently_used(cnt_before, sizeof(cnt_before));
- OUString url = OUString::createFromAscii("file:///home_athene/test.sxw");
+ OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
char cnt_after[128];
@@ -178,7 +178,7 @@ public:
sprintf(cmd, "echo '%s' > $HOME/.recently-used", xml_unknown);
system(cmd);
- OUString url = OUString::createFromAscii("file:///home_athene/test.sxw");
+ OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
char buffer[256];
@@ -194,7 +194,7 @@ public:
system("rm $HOME/.recently-used");
system("touch $HOME/.recently-used");
- OUString url = OUString::createFromAscii("file:///home_athene/test.sxw");
+ OUString url(RTL_CONSTASCII_USTRINGPARAM("file:///home_athene/test.sxw"));
syssh::AddToRecentDocumentList(url, SXW_MIME_TYPE);
char buffer[256];