diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-08 08:24:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-09 06:25:05 +0100 |
commit | 1564e33b861f22c0f6eac546deca5300d5d7b56f (patch) | |
tree | 25c51a9790811563133e4d2ea682189fa44d0a7a /sw/inc | |
parent | 358d31b4c862782a3717b8ad00cd8d5ddd6ea1e3 (diff) |
loplugin:fieldcast in SwGrfNode
Change-Id: I95411fa20c38238d1ee74e8d73dd0a9553b9ad45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159169
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndgrf.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx index 955ada009aae..93673990fff8 100644 --- a/sw/inc/ndgrf.hxx +++ b/sw/inc/ndgrf.hxx @@ -23,6 +23,7 @@ #include <sfx2/lnkbase.hxx> #include <vcl/GraphicObject.hxx> #include "ndnotxt.hxx" +#include "swbaslnk.hxx" #include <memory> class SwAsyncRetrieveInputStreamThreadConsumer; @@ -37,7 +38,7 @@ class SW_DLLPUBLIC SwGrfNode final: public SwNoTextNode GraphicObject maGrfObj; std::unique_ptr<GraphicObject> mpReplacementGraphic; - tools::SvRef<sfx2::SvBaseLink> mxLink; ///< If graphics only as link then pointer is set. + tools::SvRef<SwBaseLink> mxLink; ///< If graphics only as link then pointer is set. Size mnGrfSize; bool mbInSwapIn :1; // to avoid recursion in SwGrfNode::SwapIn bool mbInBaseLinkSwapIn :1; // to avoid recursion in SwBaseLink::SwapIn @@ -125,7 +126,7 @@ public: bool IsGrfLink() const { return mxLink.is(); } bool IsLinkedFile() const; bool IsLinkedDDE() const; - const tools::SvRef<sfx2::SvBaseLink>& GetLink() const { return mxLink; } + const tools::SvRef<SwBaseLink>& GetLink() const { return mxLink; } bool GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm ) const; void ReleaseLink(); |