office-gobmx/chart2/source/inc/NoWarningThisInCTOR.hxx
Vladimir Glazounov 2fec3d8f04 INTEGRATION: CWS chart2mst3 (1.1.2); FILE ADDED
2005/10/11 09:20:34 bm 1.1.2.3: license header change
2004/04/30 15:48:24 bm 1.1.2.2: some comments added
2004/04/30 15:31:48 bm 1.1.2.1: Avoid Warning if this is used in the CTOR base-initializer list
This warning appears on Windows (Warning 4355) esp. for Dialog classes
where all controls have to be initialized in the base-initializer list
and have to get this as parameter
Issue number:
Submitted by:
Reviewed by:
2007-05-22 17:20:30 +00:00

54 lines
2 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NoWarningThisInCTOR.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-05-22 18:20:30 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#ifndef CHART2_NOWARNINGTHISINCTOR_HXX
#define CHART2_NOWARNINGTHISINCTOR_HXX
/** Include this file, if you have to use "this" in the base initializer list of
a constructor.
Include it only, if the usage of this is unavoidable, like in the
initialization of controls in a dialog.
Do not include this header in other header files, because this might result
in unintended suppression of the warning via indirect inclusion.
*/
#ifdef _MSC_VER
// warning C4355: 'this' : used in base member initializer list
# pragma warning (disable : 4355)
#endif
// CHART2_NOWARNINGTHISINCTOR_HXX
#endif