diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-17 19:53:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-18 22:38:49 +0200 |
commit | ed0c1bc4c717a7a527bac0f86d4334a699eea4e5 (patch) | |
tree | 4963ec6ee780d642c9ef7564955dd11a3bc26c65 /vcl/source/window | |
parent | 1f3d18445cad89a8ab572028f2bc1b54914893e5 (diff) |
remove remaining '0' responses
Change-Id: I3134c8dcc92b82ab2c6008b3e39443a360f576eb
Reviewed-on: https://gerrit.libreoffice.org/72499
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/builder.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 3e0aabd0a4ca..42c6654c5e64 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -4062,10 +4062,11 @@ void VclBuilder::set_response(const OString& sID, short nResponse) case -11: nResponse = RET_HELP; break; + default: + assert(nResponse >= 100 && "keep non-canned responses in range 100+ to avoid collision with vcl RET_*"); + break; }; - assert(nResponse >= 0); - for (auto & child : m_aChildren) { if (child.m_sID == sID) |