forked from qt-creator/qt-creator
Clang: Make ClangPathWatcherNotifier non copy-able
There is already a destructor because the vtable should not be injected in every translation unit. Because of the rule of five we have to provide or omit the copy and move functions. So we delete them because we don't need them and any way it would be not smart to have to notifier. Change-Id: I35c00954eaa4e1bb299581a5e4ba5369d5cbf1cd Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -27,9 +27,6 @@
|
|||||||
|
|
||||||
namespace ClangBackEnd {
|
namespace ClangBackEnd {
|
||||||
|
|
||||||
ClangPathWatcherNotifier::~ClangPathWatcherNotifier()
|
ClangPathWatcherNotifier::~ClangPathWatcherNotifier() = default;
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace ClangBackEnd
|
} // namespace ClangBackEnd
|
||||||
|
@@ -36,7 +36,10 @@ namespace ClangBackEnd {
|
|||||||
class CLANGSUPPORT_EXPORT ClangPathWatcherNotifier
|
class CLANGSUPPORT_EXPORT ClangPathWatcherNotifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
ClangPathWatcherNotifier() = default;
|
||||||
virtual ~ClangPathWatcherNotifier();
|
virtual ~ClangPathWatcherNotifier();
|
||||||
|
ClangPathWatcherNotifier(const ClangPathWatcherNotifier &) = delete;
|
||||||
|
void operator=(const ClangPathWatcherNotifier &) = delete;
|
||||||
|
|
||||||
virtual void pathsWithIdsChanged(const Utils::SmallStringVector &ids) = 0;
|
virtual void pathsWithIdsChanged(const Utils::SmallStringVector &ids) = 0;
|
||||||
virtual void pathsChanged(const FilePathIds &filePathIds) = 0;
|
virtual void pathsChanged(const FilePathIds &filePathIds) = 0;
|
||||||
|
Reference in New Issue
Block a user