patches to clean up cppunit warnings (fdo#51154)
Robinson Tryon
bishop.robinson at gmail.com
Thu Jul 26 10:58:09 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=51154
Here are a few patches that make cppunit compile warning-free when
configured with "-Weffc++" (and continue to be warning-free with
"-Wall -Wextra -Werror", too!)
The .gitignore patches are pretty straightforward. The other commits
clean up a few odds and ends, order constructor initialization lists
properly, etc. Later commits are to fix warnings revealed by 'make
check'.
When gcc complained about classes with pointer data members not
overriding the default copy constructors and assignment operators, I
first added private methods to prevent the use of these methods (being
as conservative as possible); for any class that actually required
working implementations, I added simple methods that implement the
default (shallow-copy, etc.) behavior. I assume that some of these
classes may need more than just stubs for these methods, but I figured
that I'd get some feedback :-)
Cheers,
-- Robinson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cppunit-warning-cleanup.tar.gz
Type: application/x-gzip
Size: 9822 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120726/1a32c287/attachment-0001.bin>
More information about the LibreOffice
mailing list