Kaydet (Commit) c211646a authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Convert DBG_ASSERT to exception

Change-Id: I661de626d21df3ad2ec962a37e4bb33d53a958bc
Reviewed-on: https://gerrit.libreoffice.org/71342
Tested-by: Jenkins
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 1c07bc58
......@@ -20,6 +20,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/awt/XVclContainerPeer.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <toolkit/controls/stdtabcontroller.hxx>
#include <toolkit/controls/stdtabcontrollermodel.hxx>
......@@ -395,7 +396,9 @@ css::uno::Sequence<OUString> StdTabController::getSupportedServiceNames()
Reference< XControl > StdTabController::FindControl( Sequence< Reference< XControl > >& rCtrls,
const Reference< XControlModel > & rxCtrlModel )
{
DBG_ASSERT( rxCtrlModel.is(), "ImplFindControl - which one ?!" );
if (!rxCtrlModel.is())
throw lang::IllegalArgumentException("No valid XControlModel",
uno::Reference<uno::XInterface>(), 0);
const Reference< XControl > * pCtrls = rCtrls.getConstArray();
sal_Int32 nCtrls = rCtrls.getLength();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment