diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-20 08:23:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-20 08:34:07 +0100 |
commit | e7abad5683a28305204977b57357dddefab0e065 (patch) | |
tree | 3bb38b0e332bd3420d86586be03e545be02a6bc2 /sal/rtl | |
parent | c89f15c603cbe59a2a112243ff9f0bf7dff958e1 (diff) |
Needless assignment len -> n
Change-Id: I9051284b34e5a6f3f48ee58243d6481b072e0a80
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/strbuf.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/rtl/strbuf.cxx b/sal/rtl/strbuf.cxx index 18ae7c56cdb9..f7a6c99784af 100644 --- a/sal/rtl/strbuf.cxx +++ b/sal/rtl/strbuf.cxx @@ -114,11 +114,10 @@ void SAL_CALL rtl_stringbuffer_insert( rtl_String ** This, memmove( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Char) ); /* insert the new characters */ - n = len; if( len == 1 ) /* optimized for 1 character */ pBuf[offset] = *str; - else if( n > 1 ) + else if( len > 1 ) memcpy( pBuf + offset, str, len * sizeof(sal_Char) ); (*This)->length = nOldLen + len; pBuf[ nOldLen + len ] = 0; |