https://bugs.kde.org/show_bug.cgi?id=403193

Sergio Martins <smart...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/cla
                   |                            |zy/9cc61f7f2626c50cb16b4465
                   |                            |7ce72961fe8b536c
             Status|CONFIRMED                   |RESOLVED

--- Comment #1 from Sergio Martins <smart...@kde.org> ---
Git commit 9cc61f7f2626c50cb16b44657ce72961fe8b536c by Sergio Martins.
Committed on 14/01/2019 at 12:48.
Pushed by smartins into branch '1.4'.

rule-of-three: Work around implicitly deleted copy-ctor/assign

When a class has a const member there won't be compiler generated
copy members. The corresponding method decls are nullptr, so we can't
call isDeleted() on it. Couldn't find proper API to check this, so
check if the class has a const field.

M  +12   -4    src/checks/level2/rule-of-three.cpp
A  +21   -0    tests/rule-of-three/bug403193.cpp     [License: UNKNOWN]  *
A  +0    -0    tests/rule-of-three/bug403193.cpp.expected
M  +3    -0    tests/rule-of-three/config.json

The files marked with a * at the end have a non valid license. Please read:
https://community.kde.org/Policies/Licensing_Policy and use the headers which
are listed at that page.


https://commits.kde.org/clazy/9cc61f7f2626c50cb16b44657ce72961fe8b536c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to