diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-07 10:02:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-07 10:04:49 +0100 |
commit | e6f40de5fc6ad3edd5a482f39779d54890fac2ed (patch) | |
tree | 33e6c43a30be1a0ad779e536a46499be187db829 /ucb | |
parent | f8798dcb2a7b79558bc907862a9c279d2f75be26 (diff) |
loplugin:flatten
Change-Id: Id43a9752ff21258296e56c8dc765c3618d360c7a
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/SerfInputStream.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ucb/source/ucp/webdav/SerfInputStream.cxx b/ucb/source/ucp/webdav/SerfInputStream.cxx index 5aa9f262eed3..f0f954d64855 100644 --- a/ucb/source/ucp/webdav/SerfInputStream.cxx +++ b/ucb/source/ucp/webdav/SerfInputStream.cxx @@ -135,13 +135,9 @@ void SAL_CALL SerfInputStream::closeInput() void SAL_CALL SerfInputStream::seek( sal_Int64 location ) { - if ( location < 0 ) - throw css::lang::IllegalArgumentException(); - - if ( location <= mLen ) - mPos = location; - else + if ( location < 0 || location > mLen ) throw css::lang::IllegalArgumentException(); + mPos = location; } |