summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/misc/dp_ucb.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/misc/dp_ucb.cxx')
-rw-r--r--desktop/source/deployment/misc/dp_ucb.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/source/deployment/misc/dp_ucb.cxx b/desktop/source/deployment/misc/dp_ucb.cxx
index 71e7d18a1c9c..3da815f15fa4 100644
--- a/desktop/source/deployment/misc/dp_ucb.cxx
+++ b/desktop/source/deployment/misc/dp_ucb.cxx
@@ -218,18 +218,18 @@ bool readLine( OUString * res, OUString const & startingWith,
{
pos = file.indexOf( LF, pos );
if (pos < 0) { // EOF
- buf.append( std::u16string_view(file).substr(start) );
+ buf.append( file.subView(start) );
}
else
{
if (pos > 0 && file[ pos - 1 ] == CR)
{
// consume extra CR
- buf.append( std::u16string_view(file).substr(start, pos - start - 1) );
+ buf.append( file.subView(start, pos - start - 1) );
++pos;
}
else
- buf.append( std::u16string_view(file).substr(start, pos - start) );
+ buf.append( file.subView(start, pos - start) );
++pos; // consume LF
// check next line:
if (pos < file.getLength() &&
@@ -273,16 +273,16 @@ bool readProperties( std::vector< std::pair< OUString, OUString> > & out_result,
bool bEOF = false;
pos = file.indexOf( LF, pos );
if (pos < 0) { // EOF
- buf.append( std::u16string_view(file).substr(start) );
+ buf.append( file.subView(start) );
bEOF = true;
}
else
{
if (pos > 0 && file[ pos - 1 ] == CR)
// consume extra CR
- buf.append( std::u16string_view(file).substr(start, pos - start - 1) );
+ buf.append( file.subView(start, pos - start - 1) );
else
- buf.append( std::u16string_view(file).substr(start, pos - start) );
+ buf.append( file.subView(start, pos - start) );
pos++;
}
OUString aLine = buf.makeStringAndClear();