Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 13/02/12 09:39, Tor Lillqvist wrote:

commit b7980663f0866629e7c54a085f31dba3d9c26b26
Author: Tor Lillqvist <tlillqvist@suse.com>
Date:   Mon Feb 13 09:42:39 2012 +0200

    WaE: type name first seen using 'class' now seen using 'struct'

IMHO this is an utterly pointless warning, because the only difference
between "class" and "struct" is the default visibility of the members,
and a forward declaration doesn't declare any members, so i completely
fail to see what actual problem could be caused by this.

could this warning be turned off? (it is MSVC, right?)

diff --git a/sw/source/ui/inc/FrameControl.hxx b/sw/source/ui/inc/FrameControl.hxx
index cf887a9..53976f8 100644
--- a/sw/source/ui/inc/FrameControl.hxx
+++ b/sw/source/ui/inc/FrameControl.hxx
@@ -30,7 +30,7 @@
 
 class SwEditWin;
 class SwFrm;
-struct Point;
+class Point;
 
 /** Class representing a control linked to a SwFrm.
   */



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.