summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-12-13 16:52:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-12-14 09:34:01 +0000
commitc826ddfc2c213ae61918793eefe0c6593ce9bb17 (patch)
tree8bdc80a87fefdc35e2a6a45ad340a7a3e35f0386 /ucb
parent876de03290ce0e9393134d722e5b15025e32a341 (diff)
Check that VclPtr is only instantiated with appropriate types
...deriving from VclReferenceBase. Complicated by the fact that the argument type may be incomplete at the time of template instantiation. So this approach may be less precise than the change to loplugin:vclwidgets from cbf5b21f2a65bbb342295200f6ad93a00f90733e "Catch some misuses of VclPtr construction" when the argument type becomes complete later in the comilation unit. However, this approach would also catch the two misuses in UnoControls found by cbf5b21f2a65bbb342295200f6ad93a00f90733e, so go with this approach for now and revert the change to loplugin:vclwdigets. Change-Id: I7888f23d2b9e2db81ae2ce4bf4c8277912317685 Reviewed-on: https://gerrit.libreoffice.org/31966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
0 files changed, 0 insertions, 0 deletions