Kaydet (Commit) ab2ed5a3 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: split asserts in VclBuilder::get() for fdo#85939

Change-Id: I41e9961ae797ac99fdfb1480e1a58dbe92178bb8
üst a5ad25c4
......@@ -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;
}
......
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