diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-28 13:48:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-29 08:40:31 +0200 |
commit | 35c165e46a1bc22bc4c5b51ec7b03216fa43ec64 (patch) | |
tree | a27f1d07e3abd7577595e4e22a7146883373a076 /compilerplugins | |
parent | b75d084f673d0a7e4845a59b5446a4bfafb37fd6 (diff) |
loplugin:useuniqueptr in SwTextAPIObject
Change-Id: Ied235aefe2cc2ce5e88487503c17e1a54d25ac52
Reviewed-on: https://gerrit.libreoffice.org/56624
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/useuniqueptr.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compilerplugins/clang/useuniqueptr.cxx b/compilerplugins/clang/useuniqueptr.cxx index df6343f61578..d4262c1a33ee 100644 --- a/compilerplugins/clang/useuniqueptr.cxx +++ b/compilerplugins/clang/useuniqueptr.cxx @@ -62,6 +62,12 @@ public: // sometimes it owns, sometimes it doesn't if (fn == SRCDIR "/editeng/source/misc/svxacorr.cxx") return; + // SwDoc::m_PageDescs has weird handling + if (fn == SRCDIR "/sw/source/core/doc/docnew.cxx") + return; + // SwRedlineData::pNext and pExtraData have complex handling + if (fn == SRCDIR "/sw/source/core/doc/docredln.cxx") + return; TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } |