Kaydet (Commit) 62a4722a authored tarafından Noel Grandin's avatar Noel Grandin

xmlscript: sal_Bool->bool

Change-Id: Ib784d23aa613dce80b786ecadb98cc2c3c278e33
üst 6ed14fd8
......@@ -163,7 +163,7 @@ public:
void readDataAwareAttr(
OUString const & rAttrName );
inline void addBoolAttr(
OUString const & rAttrName, sal_Bool bValue )
OUString const & rAttrName, bool bValue )
{ addAttribute( rAttrName, OUString::boolean(bValue) ); }
void addNumberFormatAttr(
css::uno::Reference< css::beans::XPropertySet >
......@@ -254,7 +254,7 @@ inline void ElementDescriptor::read<sal_Bool>(
_xPropState->getPropertyState( propName ))
{
css::uno::Any a( _xProps->getPropertyValue( propName ) );
sal_Bool v = sal_Bool();
bool v;
if (a >>= v)
addAttribute( attrName, OUString::boolean(v) );
else
......
......@@ -255,7 +255,7 @@ void ElementDescriptor::readCheckBoxModel( StyleBag * all_styles )
readImagePositionAttr( "ImagePosition", XMLNS_DIALOGS_PREFIX ":image-position" );
readBoolAttr( "MultiLine", XMLNS_DIALOGS_PREFIX ":multiline" );
sal_Bool bTriState = sal_False;
bool bTriState = false;
if ((readProp( "TriState" ) >>= bTriState) && bTriState)
{
addAttribute( XMLNS_DIALOGS_PREFIX ":tristate", "true" );
......
......@@ -1037,7 +1037,7 @@ void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible
addAttribute( XMLNS_DIALOGS_PREFIX ":id", * reinterpret_cast< const OUString * >( a.getValue() ) );
readShortAttr( "TabIndex", XMLNS_DIALOGS_PREFIX ":tab-index" );
sal_Bool bEnabled = sal_False;
bool bEnabled = false;
if (_xProps->getPropertyValue( "Enabled" ) >>= bEnabled)
{
if (! bEnabled)
......@@ -1050,7 +1050,7 @@ void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible
SAL_WARN( "xmlscript.xmldlg", "unexpected property type for \"Enabled\": not bool!" );
}
sal_Bool bVisible = sal_True;
bool bVisible = true;
if (supportVisible) try
{
if (_xProps->getPropertyValue("EnableVisible" ) >>= bVisible)
......
......@@ -160,7 +160,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
{
::osl::MutexGuard aGuard( m_aMutex );
sal_Bool bReturn = sal_True;
bool bReturn = true;
try
{
......@@ -369,22 +369,22 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
catch ( const container::NoSuchElementException& e )
{
SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught NoSuchElementException reason " << e.Message );
bReturn = sal_False;
bReturn = false;
}
catch ( const lang::IllegalArgumentException& e )
{
SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught IllegalArgumentException reason " << e.Message );
bReturn = sal_False;
bReturn = false;
}
catch ( const lang::WrappedTargetException& e )
{
SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught WrappedTargetException reason " << e.Message );
bReturn = sal_False;
bReturn = false;
}
catch ( const xml::sax::SAXException& e )
{
SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught SAXException reason " << e.Message );
bReturn = sal_False;
bReturn = false;
}
return bReturn;
......
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