diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-14 13:40:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-14 14:49:09 +0200 |
commit | c29338e6e13e6f9d1b78280d8af9a92c781eb8bd (patch) | |
tree | 6fdf23e6cd789b0648a581778671d4b0da28ca75 /unotools | |
parent | 11b328103f9184b98a822577aaac18d1cdbc5868 (diff) |
revert bad fix
partially revert my commit 34cabe837dbb78 "loplugin:unreffun"
Change-Id: Idbfc9d1e43180c7c14e58c7b9417f3001d9805d4
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configvaluecontainer.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx index 3c526e95954c..99a2e9710759 100644 --- a/unotools/source/config/configvaluecontainer.cxx +++ b/unotools/source/config/configvaluecontainer.cxx @@ -57,10 +57,13 @@ namespace utl void bind( void* _pLocation, const Type& _rType ); + bool isBound( ) const { return ( ltUnbound != eLocationType ) && ( NULL != pLocation ); } const OUString& getPath( ) const { return sRelativePath; } LocationType getLocType( ) const { return eLocationType; } void* getLocation( ) const { return pLocation; } const Type& getDataType( ) const { return aDataType; } + + bool operator == ( const NodeValueAccessor& rhs ) const; }; NodeValueAccessor::NodeValueAccessor( const OUString& _rNodePath ) @@ -70,6 +73,13 @@ namespace utl { } + bool NodeValueAccessor::operator == ( const NodeValueAccessor& rhs ) const + { + return ( sRelativePath == rhs.sRelativePath ) + && ( eLocationType == rhs.eLocationType ) + && ( pLocation == rhs.pLocation ); + } + void NodeValueAccessor::bind( void* _pLocation, const Type& _rType ) { DBG_ASSERT( !isBound(), "NodeValueAccessor::bind: already bound!" ); |