summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/elementimport.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-19 14:09:49 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-19 14:09:49 +0100
commit7c66790faa8491c0d28c6cde38ea08c054ec59b5 (patch)
tree2e17489dadc6f885e7842b1cbcc3a1d05416bca7 /xmloff/source/forms/elementimport.cxx
parentdfa833215b5ad25790ed4827353cbd4fde42e663 (diff)
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'xmloff/source/forms/elementimport.cxx')
-rwxr-xr-xxmloff/source/forms/elementimport.cxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index 710abf6e1d..6247264730 100755
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -248,7 +248,7 @@ namespace xmloff
// insert the element into the parent container
if (!m_sName.getLength())
{
- OSL_ENSURE(sal_False, "OElementImport::EndElement: did not find a name attribute!");
+ OSL_FAIL("OElementImport::EndElement: did not find a name attribute!");
m_sName = implGetDefaultName();
}
@@ -317,7 +317,7 @@ namespace xmloff
}
catch(Exception&)
{
- OSL_ENSURE(sal_False, "OElementImport::implApplySpecificProperties: could not set the properties (using the XMultiPropertySet)!");
+ OSL_FAIL("OElementImport::implApplySpecificProperties: could not set the properties (using the XMultiPropertySet)!");
}
}
@@ -337,8 +337,7 @@ namespace xmloff
}
catch(Exception&)
{
- OSL_ENSURE(sal_False,
- ::rtl::OString("OElementImport::implApplySpecificProperties: could not set the property \"")
+ OSL_FAIL(::rtl::OString("OElementImport::implApplySpecificProperties: could not set the property \"")
+= ::rtl::OString(aPropValues->Name.getStr(), aPropValues->Name.getLength(), RTL_TEXTENCODING_ASCII_US)
+= ::rtl::OString("\"!"));
}
@@ -480,8 +479,7 @@ namespace xmloff
}
catch(Exception&)
{
- OSL_ENSURE(sal_False,
- ::rtl::OString("OElementImport::EndElement: could not set the property \"")
+ OSL_FAIL(::rtl::OString("OElementImport::EndElement: could not set the property \"")
+= ::rtl::OString(aPropValues->Name.getStr(), aPropValues->Name.getLength(), RTL_TEXTENCODING_ASCII_US)
+= ::rtl::OString("\"!"));
}
@@ -517,7 +515,7 @@ namespace xmloff
continue;
return sReturn;
}
- OSL_ENSURE(sal_False, "OElementImport::implGetDefaultName: did not find a free name!");
+ OSL_FAIL("OElementImport::implGetDefaultName: did not find a free name!");
return sUnnamedName;
}
@@ -649,7 +647,7 @@ namespace xmloff
xReturn = Reference< XPropertySet >(xPure, UNO_QUERY);
}
else
- OSL_ENSURE(sal_False, "OElementImport::createElement: no service name to create an element!");
+ OSL_FAIL("OElementImport::createElement: no service name to create an element!");
return xReturn;
}
@@ -858,7 +856,7 @@ namespace xmloff
// get the property set info
if (!m_xInfo.is())
{
- OSL_ENSURE(sal_False, "OControlImport::StartElement: no PropertySetInfo!");
+ OSL_FAIL("OControlImport::StartElement: no PropertySetInfo!");
return;
}
@@ -1011,7 +1009,7 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OControlImport::EndElement: caught an exception while retrieving the class id!" );
+ OSL_FAIL( "OControlImport::EndElement: caught an exception while retrieving the class id!" );
}
const sal_Char* pValueProperty = NULL;
@@ -1048,7 +1046,7 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OControlImport::EndElement: caught an exception while retrieving the current value property!" );
+ OSL_FAIL( "OControlImport::EndElement: caught an exception while retrieving the current value property!" );
}
}
}
@@ -1065,7 +1063,7 @@ namespace xmloff
}
catch( const Exception& )
{
- OSL_ENSURE( sal_False, "OControlImport::EndElement: caught an exception while restoring the value property!" );
+ OSL_FAIL( "OControlImport::EndElement: caught an exception while restoring the value property!" );
}
}
@@ -2136,7 +2134,7 @@ namespace xmloff
}
else
{
- OSL_ENSURE(sal_False, "OFormImport::implTranslateStringListProperty: invalid value (empty)!");
+ OSL_FAIL("OFormImport::implTranslateStringListProperty: invalid value (empty)!");
}
aProp.Value <<= aList;