summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app/AppControllerGen.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 12:34:34 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 12:34:34 +0000
commit7a437c207bfaaeacf330008b2f170ac9c76486eb (patch)
tree0857a018426419eb1e4ec80a1d6fdd77615253b4 /dbaccess/source/ui/app/AppControllerGen.cxx
parent2771894907453d28ce0f48ef4229e8486537c24e (diff)
INTEGRATION: CWS sb59 (1.20.4); FILE MERGED
2006/08/29 11:44:26 sb 1.20.4.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'dbaccess/source/ui/app/AppControllerGen.cxx')
-rw-r--r--dbaccess/source/ui/app/AppControllerGen.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx
index 146cba97eb28..afba297e5f49 100644
--- a/dbaccess/source/ui/app/AppControllerGen.cxx
+++ b/dbaccess/source/ui/app/AppControllerGen.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: AppControllerGen.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: kz $ $Date: 2006-10-05 12:59:46 $
+ * last change: $Author: obo $ $Date: 2006-10-12 13:34:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -619,7 +619,8 @@ sal_Bool OApplicationController::isRenameDeleteAllowed(ElementType _eType,sal_Bo
try
{
Reference< XNameAccess > xContainer = const_cast<OApplicationController*>(this)->getElements(eType);
- if ( (bEnabled = (xContainer.is() && xContainer->hasByName(*aList.begin()))) )
+ bEnabled = (xContainer.is() && xContainer->hasByName(*aList.begin()));
+ if ( bEnabled )
bEnabled = Reference<XRename>(xContainer->getByName(*aList.begin()),UNO_QUERY).is();
}
catch(Exception&)