summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 13:30:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 14:25:41 +0100
commitc70f5f32e2537639c7ad7e6e63fb760fd7a4ed90 (patch)
tree8fc5dfb33acca022d41c16d025cf4f0e9e931737 /sd
parent581ec73d0fe5ae09449f0f48d6e3aa7c255ac6c1 (diff)
use clear() instead of erase(begin, end)
Change-Id: Ie1dcff4c2e5f52521b4172ef5726413a9d048214 Reviewed-on: https://gerrit.libreoffice.org/67961 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/remotecontrol/BufferedStreamSocket.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
index 7d1f9c5a0562..b3a9cc154e37 100644
--- a/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
+++ b/sd/source/ui/remotecontrol/BufferedStreamSocket.cxx
@@ -119,7 +119,7 @@ sal_Int32 BufferedStreamSocket::readLine( OString& aLine )
// Prevent buffer from growing massively large.
if ( aRead > MAX_LINE_LENGTH )
{
- aBuffer.erase( aBuffer.begin(), aBuffer.end() );
+ aBuffer.clear();
return 0;
}
aRead += aRet;