From f45e3ff6a3be1c6ac38b23be0773ebfde48e6b19 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Fri, 7 Apr 2006 09:19:47 +0000 Subject: INTEGRATION: CWS toolbarbehavior (1.91.20); FILE MERGED 2006/03/28 12:59:26 cd 1.91.20.1: #i63514# Throw runtime exception if mandatory interface are not available on XFrame reference --- framework/source/services/frame.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/source/services/frame.cxx') diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 0db6419aa8e3..63db268b15d8 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -4,9 +4,9 @@ * * $RCSfile: frame.cxx,v $ * - * $Revision: 1.91 $ + * $Revision: 1.92 $ * - * last change: $Author: hr $ $Date: 2006-02-17 18:11:25 $ + * last change: $Author: vg $ $Date: 2006-04-07 10:19:47 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -3112,10 +3112,10 @@ void Frame::impl_setCloser( /*IN*/ const css::uno::Reference< css::frame::XFrame try { - css::uno::Reference< css::beans::XPropertySet > xFrameProps(xFrame, css::uno::UNO_QUERY); + css::uno::Reference< css::beans::XPropertySet > xFrameProps(xFrame, css::uno::UNO_QUERY_THROW); css::uno::Reference< css::frame::XLayoutManager > xLayoutManager; xFrameProps->getPropertyValue(FRAME_PROPNAME_LAYOUTMANAGER) >>= xLayoutManager; - css::uno::Reference< css::beans::XPropertySet > xLayoutProps(xLayoutManager, css::uno::UNO_QUERY); + css::uno::Reference< css::beans::XPropertySet > xLayoutProps(xLayoutManager, css::uno::UNO_QUERY_THROW); css::uno::Reference< css::frame::XStatusListener > xCallback; if (bState) { -- cgit