loplugin:unreffun
Change-Id: Idc0f3ef53f48b2e77e4cecbcdbbc44a115c6ec2e
This commit is contained in:
parent
09a90c2ff5
commit
34cabe837d
2 changed files with 3 additions and 20 deletions
|
@ -304,20 +304,12 @@ void* DbgFunc( sal_uInt16 nAction, void* pParam )
|
|||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void* DbgFunc( sal_uInt16, void* ) { return NULL; }
|
||||
|
||||
#endif
|
||||
|
||||
#if OSL_DEBUG_LEVEL > 0
|
||||
|
||||
TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo)
|
||||
{
|
||||
#if OSL_DEBUG_LEVEL == 0
|
||||
(void) caught;
|
||||
(void) currentFunction;
|
||||
(void) fileAndLineNo;
|
||||
#else
|
||||
OString sMessage( "caught an exception!" );
|
||||
sMessage += "\nin function:";
|
||||
sMessage += currentFunction;
|
||||
|
@ -359,9 +351,10 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c
|
|||
SAL_DETAIL_LOG_FORMAT(
|
||||
SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN,
|
||||
"legacy.osl", fileAndLineNo, "%s", sMessage.getStr());
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -57,13 +57,10 @@ 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 )
|
||||
|
@ -73,13 +70,6 @@ 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!" );
|
||||
|
|
Loading…
Reference in a new issue