diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-06 11:59:22 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-06 11:59:55 +0200 |
commit | 1449f862606abb57fd7dffdf257ce3895b120a02 (patch) | |
tree | a2f37c3fc83baa2e54a865ab33bdf589b8fc434a | |
parent | 9b3410961e52b4666a118158512e050462711fd0 (diff) |
Be more specific in warning
Change-Id: I96d5dc1267af714e78e431581592e75f0bff73f4
-rw-r--r-- | vcl/source/window/builder.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 68f5c9dc5181..9431819075b7 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); } |