diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 12:20:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 15:29:54 +0100 |
commit | c34e8bd71384326184baac7dea31f7ddf9bae6bc (patch) | |
tree | 0914b24023030781b3a74a768be9df4d2873b4b9 /basic | |
parent | a1cdde17aa27902ee162d5b40860f05c592c4de8 (diff) |
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/inc/iosys.hxx | 4 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/inc/iosys.hxx b/basic/source/inc/iosys.hxx index 7fb75a2e113c..ca5c6b275bcc 100644 --- a/basic/source/inc/iosys.hxx +++ b/basic/source/inc/iosys.hxx @@ -88,7 +88,7 @@ class SbiIoSystem short nChan; ErrCode nError; void ReadCon(OString&); - void WriteCon(const OUString&); + void WriteCon(std::u16string_view); public: SbiIoSystem(); ~SbiIoSystem() COVERITY_NOEXCEPT_FALSE; @@ -102,7 +102,7 @@ public: void Close(); void Read(OString&); char Read(); - void Write(const OUString&); + void Write(std::u16string_view); // 0 == bad channel or no SvStream (nChannel=0..CHANNELS-1) SbiStream* GetStream( short nChannel ) const; void CloseAll(); // JSM diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 6fc681f48492..4c991c6676c7 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -744,7 +744,7 @@ char SbiIoSystem::Read() return ch; } -void SbiIoSystem::Write(const OUString& rBuf) +void SbiIoSystem::Write(std::u16string_view rBuf) { if( !nChan ) { @@ -806,7 +806,7 @@ void SbiIoSystem::ReadCon(OString& rIn) // output of a MessageBox, if there's a CR in the console-buffer -void SbiIoSystem::WriteCon(const OUString& rText) +void SbiIoSystem::WriteCon(std::u16string_view rText) { aOut += rText; sal_Int32 n1 = aOut.indexOf('\n'); |