diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-22 22:05:21 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-23 01:34:45 +0100 |
commit | ff23937c34d8d6a0870bb326a52192535f7b4810 (patch) | |
tree | 236bfe7695f0c7d6119dff985f5294b7ae406826 /sw | |
parent | 33553540eb0109caac74bd8c401b5fa9f2528943 (diff) |
Fix warning C4459 when building with MSVC without -Wv:18
Discovered by https://gerrit.libreoffice.org/c/core/+/163717
Like these:
C:/lo/core/oox/source/export/shapes.cxx(2411): warning C4459: declaration of 'XML_line' hides global declaration
Change-Id: I74738753254ad1c468025d25bfb0bfe21787180f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163779
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/bastyp/proofreadingiterator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/bastyp/proofreadingiterator.cxx b/sw/source/core/bastyp/proofreadingiterator.cxx index 64c0ac2b1d09..c767351c3930 100644 --- a/sw/source/core/bastyp/proofreadingiterator.cxx +++ b/sw/source/core/bastyp/proofreadingiterator.cxx @@ -20,7 +20,7 @@ namespace { -css::uno::Reference<css::linguistic2::XProofreadingIterator> instance; +css::uno::Reference<css::linguistic2::XProofreadingIterator> _instance; bool disposed = false; void doDispose(css::uno::Reference<css::linguistic2::XProofreadingIterator> const& inst) @@ -42,7 +42,7 @@ sw::proofreadingiterator::get(css::uno::Reference<css::uno::XComponentContext> c bool disp; { SolarMutexGuard g; - instance = inst; + _instance = inst; disp = disposed; } if (disp) @@ -57,8 +57,8 @@ void sw::proofreadingiterator::dispose() css::uno::Reference<css::linguistic2::XProofreadingIterator> inst; { SolarMutexGuard g; - inst = instance; - instance.clear(); + inst = _instance; + _instance.clear(); disposed = true; } doDispose(inst); |