diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-12 12:34:34 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-12 12:34:34 +0000 |
commit | 7a437c207bfaaeacf330008b2f170ac9c76486eb (patch) | |
tree | 0857a018426419eb1e4ec80a1d6fdd77615253b4 | |
parent | 2771894907453d28ce0f48ef4229e8486537c24e (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).
-rw-r--r-- | dbaccess/source/ui/app/AppControllerGen.cxx | 7 |
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&) |