summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-24 11:37:21 +0200
committerNoel Grandin <noel@peralex.com>2014-04-24 14:17:24 +0200
commit532acfde021fb78de64faefeb561632b333931a2 (patch)
tree6a445d7ac976d2101fb8425e79205ae3afe97414 /svtools
parentf5a4280122900f36193126bf7c97256159fa7af3 (diff)
make SvDetachedEventDescriptor::hasByName return bool
Also, since this is a utility method, and it does not override a method from an UNO interface, it does not need to be virtual. Change-Id: I2dd90331e8ff49572bdfcb6ea2e2e3ed2fd95051
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/unoevent.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index dc3dfe770675..79c9c2b8cff2 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -497,7 +497,7 @@ void SvDetachedEventDescriptor::getByName(
rMacro = (*aMacros[nIndex]);
}
-sal_Bool SvDetachedEventDescriptor::hasByName(
+bool SvDetachedEventDescriptor::hasByName(
const sal_uInt16 nEvent ) const /// item ID of event
throw(IllegalArgumentException)
{
@@ -505,7 +505,7 @@ sal_Bool SvDetachedEventDescriptor::hasByName(
if (-1 == nIndex)
throw IllegalArgumentException();
- return (NULL == aMacros[nIndex]) ? sal_False : aMacros[nIndex]->HasMacro();
+ return (NULL != aMacros[nIndex]) && aMacros[nIndex]->HasMacro();
}