summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-27 20:21:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-27 20:22:03 +0200
commit6671fa81db0ecea4ada005bb79f55f08fb440ad4 (patch)
tree85ad806ece8d60736b6b01310b04b053dc2f8179 /tools
parentb6d8251eee90b7e24ebb3f8452eff36a507e6d91 (diff)
Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/diagnose_ex.h2
-rw-r--r--tools/qa/cppunit/test_reversemap.cxx1
-rw-r--r--tools/source/fsys/tempfile.cxx2
-rw-r--r--tools/source/fsys/urlobj.cxx18
4 files changed, 12 insertions, 11 deletions
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index 4649bedc212f..5dd8951fd61e 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -75,7 +75,7 @@
sMessage += pContext; \
} \
sMessage += "\n"; \
- OSL_ENSURE( false, sMessage )
+ OSL_ENSURE( false, sMessage.getStr() )
#else // OSL_DEBUG_LEVEL
diff --git a/tools/qa/cppunit/test_reversemap.cxx b/tools/qa/cppunit/test_reversemap.cxx
index c2a679896ca7..689f99e589d8 100644
--- a/tools/qa/cppunit/test_reversemap.cxx
+++ b/tools/qa/cppunit/test_reversemap.cxx
@@ -41,6 +41,7 @@
#include <rtl/ustring.hxx>
#include <vector>
+#include "test/oustringostreaminserter.hxx"
#include "tools/tenccvt.hxx"
//Tests for getBestMSEncodingByChar
diff --git a/tools/source/fsys/tempfile.cxx b/tools/source/fsys/tempfile.cxx
index b6a4b1e2b70e..1bb00a141436 100644
--- a/tools/source/fsys/tempfile.cxx
+++ b/tools/source/fsys/tempfile.cxx
@@ -85,7 +85,7 @@ String ConstructTempDir_Impl( const String* pParent )
if ( aRet[i-1] == '/' )
i--;
- if ( DirectoryItem::get( ::rtl::OUString( aRet, i ), aItem ) == FileBase::E_None )
+ if ( DirectoryItem::get( aRet.copy(0, i), aItem ) == FileBase::E_None )
aName = aRet;
}
}
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 52b90f37afac..bbf2106460de 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2921,7 +2921,7 @@ bool INetURLObject::setHost(rtl::OUString const & rTheHost, bool bOctets,
{
case INET_PROT_FILE:
{
- rtl::OUString sTemp(aSynHost);
+ rtl::OUString sTemp(aSynHost.toString());
if (sTemp.equalsIgnoreAsciiCaseAsciiL(
RTL_CONSTASCII_STRINGPARAM("localhost")))
{
@@ -3270,7 +3270,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme,
eCharset, false);
}
bool bInbox;
- rtl::OUString sCompare(aTheSynPath);
+ rtl::OUString sCompare(aTheSynPath.toString());
if (sCompare.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("/inbox")))
bInbox = true;
else if (sCompare.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("/newsgroups")))
@@ -3811,7 +3811,7 @@ INetURLObject::getAbbreviated(
}
else
{
- if (m_aAbsURIRef)
+ if (m_aAbsURIRef.getLength() != 0)
{
sal_Unicode const * pSchemeBegin
= m_aAbsURIRef.getStr();
@@ -3869,7 +3869,7 @@ INetURLObject::getAbbreviated(
if (pSuffixEnd != pBegin)
aResult.appendAscii(RTL_CONSTASCII_STRINGPARAM("..."));
aResult.append(aSegment);
- aResult.append(aTrailer);
+ aResult.append(aTrailer.toString());
aResult.append(aRest);
if (rStringWidth->
queryStringWidth(aResult.makeStringAndClear())
@@ -3910,7 +3910,7 @@ INetURLObject::getAbbreviated(
aResult.append(aSegment);
if (pPrefixBegin != pEnd)
aResult.appendAscii(RTL_CONSTASCII_STRINGPARAM("..."));
- aResult.append(aTrailer);
+ aResult.append(aTrailer.toString());
aResult.append(aRest);
if (rStringWidth->
queryStringWidth(aResult.makeStringAndClear())
@@ -3933,7 +3933,7 @@ INetURLObject::getAbbreviated(
{
if (pPrefixBegin != pBegin || pSuffixEnd != pEnd)
aBuffer.appendAscii(RTL_CONSTASCII_STRINGPARAM("..."));
- aBuffer.append(aTrailer);
+ aBuffer.append(aTrailer.toString());
}
}
if (!bSegment)
@@ -3987,7 +3987,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const
if (m_eScheme != rObject.m_eScheme)
return false;
if (m_eScheme == INET_PROT_NOT_VALID)
- return (m_aAbsURIRef == rObject.m_aAbsURIRef) != false;
+ return m_aAbsURIRef.toString() == rObject.m_aAbsURIRef.toString();
if ((m_aScheme.compare(
rObject.m_aScheme, m_aAbsURIRef, rObject.m_aAbsURIRef)
!= 0)
@@ -4160,7 +4160,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
{
case INET_PROT_FILE:
{
- rtl::OUString sTemp(aSynHost);
+ rtl::OUString sTemp(aSynHost.toString());
if (sTemp.equalsIgnoreAsciiCaseAsciiL(
RTL_CONSTASCII_STRINGPARAM("localhost")))
{
@@ -4266,7 +4266,7 @@ rtl::OUString INetURLObject::getExternalURL(DecodeMechanism eMechanism,
{
rtl::OUString aTheExtURIRef;
translateToExternal(
- rtl::OUString(m_aAbsURIRef), aTheExtURIRef, eMechanism, eCharset);
+ m_aAbsURIRef.toString(), aTheExtURIRef, eMechanism, eCharset);
return aTheExtURIRef;
}