summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2014-06-29 22:52:08 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-06-30 07:06:29 +0000
commitf8018266ccff7ecceb26795aeb91a6ca560e8467 (patch)
treee20f278da79c8632b88ab6e53935feabf6709168 /vcl
parent0fef0d41f7e373d562c0689107183ab40e09d129 (diff)
Remove double assignment
The semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression i,f; position p1,p2; @@ ( (<+...i++...+>) = ...; | (<+...++i...+>) = ...; | (<+...i--...+>) = ...; | (<+...--i...+>) = ...; | i = <+...f(...)...+>; | i@p1 = ...; ( i = <+...i...+>; | i = <+...f(...)...+>; | i@p2 = ...; ) ) @@ expression i; position r.p1,r.p2; @@ * i@p1 = ...; i@p2 = ...; // </smpl> Change-Id: Ifacb878d58486f2645560592484ce24b2bc0bd6f Reviewed-on: https://gerrit.libreoffice.org/9968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/DataFlavorMapping.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/vcl/osx/DataFlavorMapping.cxx b/vcl/osx/DataFlavorMapping.cxx
index 95584bba6b85..33bd19b3c46c 100644
--- a/vcl/osx/DataFlavorMapping.cxx
+++ b/vcl/osx/DataFlavorMapping.cxx
@@ -508,7 +508,6 @@ const NSString* DataFlavorMapper::openOfficeToSystemFlavor( const DataFlavor& oO
{
const NSString* sysFlavor = NULL;
rbInternal = false;
- rbInternal = false;
for( size_t i = 0; i < SIZE_FLAVOR_MAP; ++i )
{