[Libreoffice-commits] core.git: sal/rtl
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 23 13:50:16 PDT 2013
sal/rtl/strtmpl.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 43de68a43f96112e14f6f83e9129e22cc0e4bcc4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 23 21:35:27 2013 +0100
coverity#704247 Logically dead code
Change-Id: Iaefddeb816d36d4a07234d903fafab3d6b83e1d2
Reviewed-on: https://gerrit.libreoffice.org/2952
Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
Reviewed-by: Thorsten Behrens <tbehrens at suse.com>
Tested-by: Thorsten Behrens <tbehrens at suse.com>
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 5f59795..69bd5ee 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -303,10 +303,7 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( hashCode_WithLength )( const IMPL_RTL_STRCO
h = (h*39) + IMPL_RTL_USTRCODE( *pStr );
pStr++;
- if ( nLen < 32 )
- nSkip = nLen / 4;
- else
- nSkip = nLen / 8;
+ nSkip = nLen / 8;
nLen -= 8;
while ( nLen > 0 )
{
More information about the Libreoffice-commits
mailing list