[Libreoffice-commits] core.git: Branch 'private/tml/opencl-default-1' - vcl/source
Tor Lillqvist
tml at collabora.com
Thu Nov 6 01:59:53 PST 2014
vcl/source/window/builder.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit bd4c93d32774eae591483707d59f49e5913b54d6
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Nov 6 11:59:22 2014 +0200
Be more specific in warning
Change-Id: I96d5dc1267af714e78e431581592e75f0bff73f4
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 68f5c9d..9431819 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -293,7 +293,8 @@ VclBuilder::VclBuilder(vcl::Window *pParent, const OUString& sUIDir, const OUStr
{
NumericFormatter *pTarget = dynamic_cast<NumericFormatter*>(get<vcl::Window>(aI->m_sID));
const Adjustment *pAdjustment = get_adjustment_by_name(aI->m_sValue);
- SAL_WARN_IF(!pTarget || !pAdjustment, "vcl", "missing elements of spinbutton/adjustment");
+ SAL_WARN_IF(!pTarget, "vcl", "missing NumericFormatter element of spinbutton/adjustment");
+ SAL_WARN_IF(!pAdjustment, "vcl", "missing Adjustment element of spinbutton/adjustment");
if (pTarget && pAdjustment)
mungeAdjustment(*pTarget, *pAdjustment);
}
More information about the Libreoffice-commits
mailing list