revert bad fix
partially revert my commit 34cabe837d
"loplugin:unreffun"
Change-Id: Idbfc9d1e43180c7c14e58c7b9417f3001d9805d4
This commit is contained in:
@@ -57,10 +57,13 @@ namespace utl
|
|||||||
|
|
||||||
void bind( void* _pLocation, const Type& _rType );
|
void bind( void* _pLocation, const Type& _rType );
|
||||||
|
|
||||||
|
bool isBound( ) const { return ( ltUnbound != eLocationType ) && ( NULL != pLocation ); }
|
||||||
const OUString& getPath( ) const { return sRelativePath; }
|
const OUString& getPath( ) const { return sRelativePath; }
|
||||||
LocationType getLocType( ) const { return eLocationType; }
|
LocationType getLocType( ) const { return eLocationType; }
|
||||||
void* getLocation( ) const { return pLocation; }
|
void* getLocation( ) const { return pLocation; }
|
||||||
const Type& getDataType( ) const { return aDataType; }
|
const Type& getDataType( ) const { return aDataType; }
|
||||||
|
|
||||||
|
bool operator == ( const NodeValueAccessor& rhs ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
NodeValueAccessor::NodeValueAccessor( const OUString& _rNodePath )
|
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 )
|
void NodeValueAccessor::bind( void* _pLocation, const Type& _rType )
|
||||||
{
|
{
|
||||||
DBG_ASSERT( !isBound(), "NodeValueAccessor::bind: already bound!" );
|
DBG_ASSERT( !isBound(), "NodeValueAccessor::bind: already bound!" );
|
||||||
|
Reference in New Issue
Block a user