summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-22 09:52:13 +0200
committerNoel Grandin <noel@peralex.com>2016-02-22 14:34:21 +0200
commitdb8067145f0126402be39042934e11228a1b42e9 (patch)
tree0a9d18faaf0c862cc544e6a991b32a68bbb40e28 /connectivity
parent14420e83296fd393cba956047370564c3517cdae (diff)
loplugin:write only fields
Change-Id: I44f249a17d0a510ec63a488b656d57a1a392f821
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/FValue.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index 50dbd0af34c7..241e3156c9cf 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -184,9 +184,8 @@ namespace tracing
struct AllocationType
{
const sal_Char* pName;
- sal_Int32 nAllocatedUnits;
- AllocationType( ) : pName( nullptr ), nAllocatedUnits( 0 ) { }
+ AllocationType( ) : pName( nullptr ) { }
};
@@ -235,7 +234,6 @@ namespace tracing
::osl::MutexGuard aGuard( s_aMutex );
AllocationState::iterator aPos = getLocation( _pName );
- ++aPos->nAllocatedUnits;
}
@@ -244,7 +242,6 @@ namespace tracing
::osl::MutexGuard aGuard( s_aMutex );
AllocationState::iterator aPos = getLocation( _pName );
- --aPos->nAllocatedUnits;
}
#define TRACE_ALLOC( type ) tracing::AllocationTracer::registerUnit( #type );