[Libreoffice] Question about cppcheck "unused private"

Julien Nabet serval2412 at yahoo.fr
Sat Feb 12 04:26:34 PST 2011


With the last git version of cppcheck, I've got in the master branch 
writer/sw/source/ui/dbui this :
[./dbmgr.cxx:222]: (style) Unused private function 

I tried to comment the following lines :
- (222) virtual void SAL_CALL disposing( const EventObject& Source ) 
throw (RuntimeException);
- (2922-> 2936) : the function
void SwConnectionDisposedListener_Impl::disposing( const EventObject& 
rSource )

and here is what I got :
Compiling: sw/source/ui/dbui/dbmgr.cxx
In constructor 'SwNewDBMgr_Impl::SwNewDBMgr_Impl(SwNewDBMgr&)':
error: cannot allocate an object of abstract type 
note:   because the following virtual functions are pure within 
note:     virtual void 
dmake:  Error code 1, while making '../../../unxlngi6.pro/slo/dbmgr.obj'

I don't understand these errors and so how to correct them.
If it's a false positive cppcheck, I don't understand why.

Could someone help me with all this stuff ?

(gcc version 4.4.5 (Debian 4.4.5-10) )

Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 

More information about the LibreOffice mailing list