Kaydet (Commit) 61b3d417 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

#100000# initialize variables

üst 7db1e729
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: graphiccollector.cxx,v $ * $RCSfile: graphiccollector.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: sj $ $Date: 2007-05-16 15:07:46 $ * last change: $Author: vg $ $Date: 2007-10-29 12:29:40 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -187,7 +187,7 @@ void ImpAddFillBitmapEntity( const Reference< XComponentContext >& rxMSF, const ...@@ -187,7 +187,7 @@ void ImpAddFillBitmapEntity( const Reference< XComponentContext >& rxMSF, const
{ {
if ( ( eBitmapMode == BitmapMode_REPEAT ) || ( eBitmapMode == BitmapMode_NO_REPEAT ) ) if ( ( eBitmapMode == BitmapMode_REPEAT ) || ( eBitmapMode == BitmapMode_NO_REPEAT ) )
{ {
sal_Bool bLogicalSize; sal_Bool bLogicalSize = sal_False;
awt::Size aSize( 0, 0 ); awt::Size aSize( 0, 0 );
if ( ( rxPropertySet->getPropertyValue( TKGet( TK_FillBitmapLogicalSize ) ) >>= bLogicalSize ) if ( ( rxPropertySet->getPropertyValue( TKGet( TK_FillBitmapLogicalSize ) ) >>= bLogicalSize )
&& ( rxPropertySet->getPropertyValue( TKGet( TK_FillBitmapSizeX ) ) >>= aSize.Width ) && ( rxPropertySet->getPropertyValue( TKGet( TK_FillBitmapSizeX ) ) >>= aSize.Width )
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: informationdialog.cxx,v $ * $RCSfile: informationdialog.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: sj $ $Date: 2007-09-28 15:49:57 $ * last change: $Author: vg $ $Date: 2007-10-29 12:29:27 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -403,7 +403,7 @@ sal_Bool InformationDialog::execute() ...@@ -403,7 +403,7 @@ sal_Bool InformationDialog::execute()
if ( maSaveAsURL.getLength() ) if ( maSaveAsURL.getLength() )
{ {
sal_Int16 nInt16; sal_Int16 nInt16 = 0;
Any aAny( getControlProperty( TKGet( TK_OpenNewDocument ), TKGet( TK_State ) ) ); Any aAny( getControlProperty( TKGet( TK_OpenNewDocument ), TKGet( TK_State ) ) );
if ( aAny >>= nInt16 ) if ( aAny >>= nInt16 )
{ {
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: optimizerdialog.cxx,v $ * $RCSfile: optimizerdialog.cxx,v $
* *
* $Revision: 1.7 $ * $Revision: 1.8 $
* *
* last change: $Author: sj $ $Date: 2007-08-17 09:38:07 $ * last change: $Author: vg $ $Date: 2007-10-29 12:30:01 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -190,7 +190,7 @@ void OptimizerDialog::InsertRoadmapItem( const sal_Int32 nIndex, const sal_Bool ...@@ -190,7 +190,7 @@ void OptimizerDialog::InsertRoadmapItem( const sal_Int32 nIndex, const sal_Bool
void OptimizerDialog::UpdateConfiguration() void OptimizerDialog::UpdateConfiguration()
{ {
sal_Int16 nInt16; sal_Int16 nInt16 = 0;
OUString aString; OUString aString;
Any aAny; Any aAny;
...@@ -440,7 +440,7 @@ void ItemListener::itemStateChanged( const ItemEvent& Event ) ...@@ -440,7 +440,7 @@ void ItemListener::itemStateChanged( const ItemEvent& Event )
break; break;
case TK_RadioButton0Pg1 : case TK_RadioButton0Pg1 :
{ {
sal_Int16 nInt16; sal_Int16 nInt16 = 0;
if ( xPropertySet->getPropertyValue( TKGet( TK_State ) ) >>= nInt16 ) if ( xPropertySet->getPropertyValue( TKGet( TK_State ) ) >>= nInt16 )
{ {
nInt16 ^= 1; nInt16 ^= 1;
...@@ -752,7 +752,7 @@ void ActionListenerListBox0Pg0::disposing( const ::com::sun::star::lang::EventOb ...@@ -752,7 +752,7 @@ void ActionListenerListBox0Pg0::disposing( const ::com::sun::star::lang::EventOb
void TextListenerFormattedField0Pg1::textChanged( const TextEvent& /* rEvent */ ) void TextListenerFormattedField0Pg1::textChanged( const TextEvent& /* rEvent */ )
throw ( com::sun::star::uno::RuntimeException ) throw ( com::sun::star::uno::RuntimeException )
{ {
double fDouble; double fDouble = 0;
Any aAny = mrOptimizerDialog.getControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ) ); Any aAny = mrOptimizerDialog.getControlProperty( TKGet( TK_FormattedField0Pg1 ), TKGet( TK_EffectiveValue ) );
if ( aAny >>= fDouble ) if ( aAny >>= fDouble )
mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)fDouble ) ); mrOptimizerDialog.SetConfigProperty( TK_JPEGQuality, Any( (sal_Int32)fDouble ) );
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: unodialog.cxx,v $ * $RCSfile: unodialog.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: sj $ $Date: 2007-07-10 16:16:25 $ * last change: $Author: vg $ $Date: 2007-10-29 12:29:48 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -178,7 +178,7 @@ sal_Bool UnoDialog::isHighContrast() ...@@ -178,7 +178,7 @@ sal_Bool UnoDialog::isHighContrast()
sal_Bool bHighContrast = sal_False; sal_Bool bHighContrast = sal_False;
try try
{ {
sal_Int32 nBackgroundColor; sal_Int32 nBackgroundColor = sal_False;
if ( mxDialogModelPropertySet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "BackgroundColor" ) ) ) >>= nBackgroundColor ) if ( mxDialogModelPropertySet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "BackgroundColor" ) ) ) >>= nBackgroundColor )
{ {
sal_uInt8 nLum( static_cast< sal_uInt8 >( ( static_cast< sal_uInt8 >( nBackgroundColor >> 16 ) * 28 + sal_uInt8 nLum( static_cast< sal_uInt8 >( ( static_cast< sal_uInt8 >( nBackgroundColor >> 16 ) * 28 +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment