summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/bootstrap.cxx6
-rw-r--r--unotools/source/i18n/resmgr.cxx4
-rw-r--r--unotools/source/misc/datetime.cxx6
3 files changed, 8 insertions, 8 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx
index b413e883ab2a..4ea07ea99c67 100644
--- a/unotools/source/config/bootstrap.cxx
+++ b/unotools/source/config/bootstrap.cxx
@@ -216,7 +216,7 @@ static bool implNormalizeURL(OUString & _sURL, osl::DirectoryItem& aDirItem)
// #109863# sal/osl returns final slash for file URLs contradicting
// the URL/URI RFCs.
- if ( !aNormalizedURL.endsWith(OUStringLiteral1(cURLSeparator)) )
+ if ( !aNormalizedURL.endsWith(OUStringChar(cURLSeparator)) )
_sURL = aNormalizedURL;
else
_sURL = aNormalizedURL.copy( 0, aNormalizedURL.getLength()-1 );
@@ -318,9 +318,9 @@ static PathStatus getDerivedPath(
// do we have a base path ?
if (!_aBaseURL.isEmpty())
{
- OSL_PRECOND(!_aBaseURL.endsWith(OUStringLiteral1(cURLSeparator)), "Unexpected: base URL ends in slash");
+ OSL_PRECOND(!_aBaseURL.endsWith(OUStringChar(cURLSeparator)), "Unexpected: base URL ends in slash");
- sDerivedURL = _aBaseURL + OUStringLiteral1(cURLSeparator) + _sRelativeURL;
+ sDerivedURL = _aBaseURL + OUStringChar(cURLSeparator) + _sRelativeURL;
// a derived (nested) URL can only exist or have a lesser status, if the parent exists
if (aStatus == Bootstrap::PATH_EXISTS)
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx
index c55de86ee89b..0f58039509fb 100644
--- a/unotools/source/i18n/resmgr.cxx
+++ b/unotools/source/i18n/resmgr.cxx
@@ -196,7 +196,7 @@ namespace Translate
if (std::use_facet<boost::locale::info>(loc).language() == "qtz")
{
OString sKeyId(genKeyId(OString(pContextAndId).replace('\004', '|')));
- return OUString::fromUtf8(sKeyId) + OUStringLiteral1(0x2016) + createFromUtf8(pId, strlen(pId));
+ return OUString::fromUtf8(sKeyId) + OUStringChar(0x2016) + createFromUtf8(pId, strlen(pId));
}
//otherwise translate it
@@ -230,7 +230,7 @@ namespace Translate
{
OString sKeyId(genKeyId(aContextIdId[0] + "|" + aContextIdId[1]));
int nForm = n == 0 ? 1 : 2;
- return OUString::fromUtf8(sKeyId) + OUStringLiteral1(0x2016) + createFromUtf8(aContextIdId[nForm].getStr(), aContextIdId[nForm].getLength());
+ return OUString::fromUtf8(sKeyId) + OUStringChar(0x2016) + createFromUtf8(aContextIdId[nForm].getStr(), aContextIdId[nForm].getLength());
}
//otherwise translate it
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index 88d5095bd385..7b2ef0eb2c40 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -114,7 +114,7 @@ namespace
return true;
if (c < c0 || c > c9)
return false;
- resInt += OUStringLiteral1(c);
+ resInt += OUStringChar(c);
}
if (nPos == i_str.getLength() || i_str[nPos] == sep)
return true;
@@ -135,7 +135,7 @@ namespace
return false;
if (c < c0 || c > c9)
return false;
- resFrac += OUStringLiteral1(c);
+ resFrac += OUStringChar(c);
}
OSL_ENSURE(nPos == i_str.getLength(), "impl_getISO8601TimeToken internal error; expected to be at end of string");
return true;
@@ -185,7 +185,7 @@ namespace
const sal_Unicode c = i_str[io_index];
if ((c < c0 || c > c9) && c != sep)
return false;
- o_strInt += OUStringLiteral1(c);
+ o_strInt += OUStringChar(c);
}
return true;
}