summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-02-18 11:51:38 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-02-22 07:51:47 +0000
commit8abb2f4d57b54c42429e64302dd716bdc2b73d79 (patch)
treeb79ee04594c016d1278a6b786f614c6a23c0f4fd /basic/source
parent931f62a52085d78f81a12f277808ff9cfc6c9078 (diff)
coverity#982288 Logically dead code
Change-Id: I4fb90cb00829bc4be7d050521215528de4748d76 Reviewed-on: https://gerrit.libreoffice.org/2245 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/classes/image.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index cdc2239901c2..6ff0b9203b78 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -415,10 +415,6 @@ void SbiImage::AddString( const OUString& r )
{
sal_uInt32 nNewLen = needed + 1024;
nNewLen &= 0xFFFFFC00; // trim to 1K border
- if( nNewLen > 0xFFFFFF00L )
- {
- nNewLen = 0xFFFFFF00L;
- }
sal_Unicode* p = NULL;
if( (p = new sal_Unicode[ nNewLen ]) != NULL )
{