summaryrefslogtreecommitdiff
path: root/vcl/inc/vcl/salnativewidgets.hxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-01 13:46:45 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-01 13:46:45 +0000
commit6ee5dfa150d408179e20a5525ff7ec46649e0e58 (patch)
treef1282052e25df8f62e9d78a1408e68f5c4e063e6 /vcl/inc/vcl/salnativewidgets.hxx
parent46a63a2af38e694327c5308168f499a549fb724e (diff)
CWS-TOOLING: integrate CWS vcl94
Diffstat (limited to 'vcl/inc/vcl/salnativewidgets.hxx')
-rw-r--r--vcl/inc/vcl/salnativewidgets.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/vcl/inc/vcl/salnativewidgets.hxx b/vcl/inc/vcl/salnativewidgets.hxx
index e16df97f3c5f..c8fb0cb40d21 100644
--- a/vcl/inc/vcl/salnativewidgets.hxx
+++ b/vcl/inc/vcl/salnativewidgets.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salnativewidgets.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.108.2 $
*
* This file is part of OpenOffice.org.
*
@@ -402,11 +402,17 @@ class ImplControlValue
{ mTristate = nTristate; mString = sString; mNumber = nNumeric; mOptionalVal = aOptVal; };
inline ImplControlValue( ButtonValue nTristate, rtl::OUString sString, long nNumeric ) \
{ mTristate = nTristate; mString = sString; mNumber = nNumeric; mOptionalVal = NULL; };
- inline ImplControlValue( ButtonValue nTristate ) { mTristate = nTristate; mOptionalVal = NULL; };
- inline ImplControlValue( rtl::OUString sString ) { mString = sString; mOptionalVal = NULL; };
- inline ImplControlValue( long nNumeric ) { mNumber = nNumeric; mOptionalVal = NULL; };
- inline ImplControlValue( void * aOptVal ) { mOptionalVal = aOptVal; };
- inline ImplControlValue() { mTristate = BUTTONVALUE_DONTKNOW; mNumber = 0; mOptionalVal = NULL; };
+ explicit ImplControlValue( ButtonValue nTristate )
+ : mTristate(nTristate), mNumber(0), mOptionalVal(NULL) {}
+ explicit ImplControlValue( rtl::OUString& rString )
+ : mTristate(BUTTONVALUE_DONTKNOW), mString(rString), mNumber(0), mOptionalVal(NULL) {}
+ explicit ImplControlValue( long nNumeric )
+ : mTristate(BUTTONVALUE_DONTKNOW), mNumber( nNumeric), mOptionalVal(NULL) {}
+ explicit ImplControlValue( void* aOptVal )
+ : mTristate(BUTTONVALUE_DONTKNOW), mNumber(0), mOptionalVal(aOptVal) {}
+ inline ImplControlValue()
+ : mTristate(BUTTONVALUE_DONTKNOW), mNumber(0), mOptionalVal(NULL) {}
+
inline ~ImplControlValue() { mOptionalVal = NULL; };
inline ButtonValue getTristateVal( void ) const { return mTristate; }