diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 11:04:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 14:13:03 +0200 |
commit | 7de833a626cea8cd741ba1d971fea6f0c3a2660b (patch) | |
tree | 2750dbed735b4df7a9e82add532df49049cc52e8 /stoc | |
parent | 6f9f9491bdef676f969898bd653db9905d14f5e8 (diff) |
simplify calls OUString::copy in foo.copy(x, foo.getLength() - x)
Change-Id: I20318c77dcc3bc2a64336541ef5a3f412bfd9483
Reviewed-on: https://gerrit.libreoffice.org/39803
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/security/permissions.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 3ae049c7fead..e332198d194b 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -157,7 +157,7 @@ SocketPermission::SocketPermission( else // A-B { m_lowerPort = m_host.copy( colon +1, minus - colon -1 ).toInt32(); - m_upperPort = m_host.copy( minus +1, m_host.getLength() -minus -1 ).toInt32(); + m_upperPort = m_host.copy( minus +1 ).toInt32(); } m_host = m_host.copy( 0, colon ); } |