summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-19 11:51:58 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-19 22:07:58 -0200
commit55b6485978bbfe17c1355909a5e27d8c846a4ee8 (patch)
tree2581d37bd207a65aa062bcff7576a93f99cbafe0 /unodevtools/source/skeletonmaker/cppcompskeleton.cxx
parent688551303ee5b918841b64ac85f06ab12989b7fc (diff)
Fix for fdo43460 Part XLI getLength() to isEmpty()
Part XLI Modules ucbhelper, unodevtools
Diffstat (limited to 'unodevtools/source/skeletonmaker/cppcompskeleton.cxx')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index 97ba560658cd..57b46137a70c 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -572,7 +572,7 @@ void generateAddinConstructorAndHelper(std::ostream& o,
"throw (css::uno::RuntimeException)\n{\n"
" ::rtl::OUString ret;\n try {\n "
"::rtl::OUStringBuffer buf(funcName);\n"
- " if (paramName.getLength() > 0) {\n"
+ " if (!paramName.isEmpty()) {\n"
" buf.appendAscii(\"/Parameters/\");\n"
" buf.append(paramName);\n }\n\n"
" css::uno::Reference< css::beans::XPropertySet > xPropSet(\n"
@@ -924,14 +924,14 @@ void generateQueryInterface(std::ostream& o,
OString const & classname,
OString const & propertyhelper)
{
- if (propertyhelper.getLength() == 0)
+ if (propertyhelper.isEmpty())
return;
o << "css::uno::Any " << classname
<< "::queryInterface(css::uno::Type const & type) throw ("
"css::uno::RuntimeException)\n{\n ";
- if (propertyhelper.getLength() >= 1)
+ if (!propertyhelper.isEmpty())
o << "return ";
else
o << "css::uno::Any a(";
@@ -949,7 +949,7 @@ void generateQueryInterface(std::ostream& o,
o << ">";
}
- if (propertyhelper.getLength() >= 1) {
+ if (!propertyhelper.isEmpty()) {
o << "::queryInterface(type);\n";
} else {
o << "::queryInterface(type));\n";
@@ -1160,7 +1160,7 @@ void generateCalcAddin(ProgramOptions const & options,
OString propertyhelper = checkPropertyHelper(
options, manager, services, interfaces, attributes, propinterfaces);
- if (propertyhelper.getLength() > 0)
+ if (!propertyhelper.isEmpty())
std::cerr << "WARNING: interfaces specifying calc add-in functions "
"shouldn't support attributes!\n";