summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/builder.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 9d952c063e26..af10f76478a1 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -404,7 +404,8 @@ inline T* VclBuilder::get(T*& ret, const OString& sID)
SAL_WARN_IF(!w, "vcl.layout", "widget \"" << sID.getStr() << "\" not found in .ui");
SAL_WARN_IF(!dynamic_cast<T*>(w),
"vcl.layout", ".ui widget \"" << sID.getStr() << "\" needs to correspond to vcl type " << typeid(T).name());
- assert(w && dynamic_cast<T*>(w));
+ assert(w);
+ assert(dynamic_cast<T*>(w));
ret = static_cast<T*>(w);
return ret;
}