diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-01 09:15:09 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-01 09:41:49 -0500 |
commit | 9601b63509f07069b90144f53b2e55f74d04a483 (patch) | |
tree | 931b1d74ac02112900d66f8434b63060a4ede296 /store | |
parent | 4de8cc346590de52170f438b3a0f29f322dcb66b (diff) |
targeted string re-work
Change-Id: Ibe5c739c3066f3e706a44b64d4ad775abde9662c
Diffstat (limited to 'store')
-rw-r--r-- | store/workben/t_store.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx index c48d9fef79a5..a6184eb480c2 100644 --- a/store/workben/t_store.cxx +++ b/store/workben/t_store.cxx @@ -172,7 +172,7 @@ DirectoryTraveller::DirectoryTraveller ( m_nCount (0) { m_aPath += rName; - m_aPath += OUString(RTL_CONSTASCII_USTRINGPARAM("/")); + m_aPath += OUString("/"); } /* @@ -344,7 +344,7 @@ int SAL_CALL main (int argc, char **argv) } // Stream Read/Write. - OUString aPath (RTL_CONSTASCII_USTRINGPARAM("/")); + OUString aPath ("/"); if ((nOptions & OPTION_READ) || (nOptions & OPTION_WRITE)) { // Mode. @@ -366,9 +366,9 @@ int SAL_CALL main (int argc, char **argv) for (int i = 0; i < _DEMOSTOR_LOOPS; i++) { - OUString aName (RTL_CONSTASCII_USTRINGPARAM("demostor-")); + OUString aName ("demostor-"); aName += OUString::valueOf ((sal_Int32)(i + 1), 10); - aName += OUString(RTL_CONSTASCII_USTRINGPARAM (".dat")); + aName += OUString(".dat"); #if (_DEMOSTOR_REMOVE == 1) eErrCode = aFile.remove (aPath, aName); @@ -456,7 +456,7 @@ int SAL_CALL main (int argc, char **argv) { // Create symlink to (root) directory. eErrCode = aFile.symlink ( - aPath, OUString(RTL_CONSTASCII_USTRINGPARAM("000000/")), + aPath, OUString("000000/"), OUString(), aPath); OSL_POSTCOND( ((eErrCode == store_E_None ) || @@ -464,11 +464,11 @@ int SAL_CALL main (int argc, char **argv) "t_store::main(): store_symlink() failed"); // Create symlink to file. - OUString aLinkName (RTL_CONSTASCII_USTRINGPARAM("demostor-1.lnk")); + OUString aLinkName ("demostor-1.lnk"); eErrCode = aFile.symlink ( aPath, aLinkName, - aPath, OUString(RTL_CONSTASCII_USTRINGPARAM("demostor-1.dat"))); + aPath, OUString("demostor-1.dat")); OSL_POSTCOND( ((eErrCode == store_E_None ) || (eErrCode == store_E_AlreadyExists) ), @@ -477,7 +477,7 @@ int SAL_CALL main (int argc, char **argv) (eErrCode == store_E_AlreadyExists) ) { OUString aShortcut ( - RTL_CONSTASCII_USTRINGPARAM("Shortcut to demostor-1.dat")); + "Shortcut to demostor-1.dat"); eErrCode = aFile.rename ( aPath, aLinkName, aPath, aShortcut); @@ -488,7 +488,7 @@ int SAL_CALL main (int argc, char **argv) } // Create directory. - OUString aDirName (RTL_CONSTASCII_USTRINGPARAM("demostor-1.dir")); + OUString aDirName ("demostor-1.dir"); store::OStoreDirectory aDir; eErrCode = aDir.create ( @@ -515,7 +515,7 @@ int SAL_CALL main (int argc, char **argv) { // Open symlink entry. eErrCode = aRootDir.create ( - aFile, aPath, OUString(RTL_CONSTASCII_USTRINGPARAM("000000")), + aFile, aPath, OUString("000000"), store_AccessReadOnly); } else |