summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linguistic/source/gciterator.cxx7
-rw-r--r--linguistic/source/gciterator.hxx7
2 files changed, 6 insertions, 8 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 1cd8883705c7..5ab816dfa802 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -345,16 +345,15 @@ OUString GrammarCheckingIterator::GetOrCreateDocId(
void GrammarCheckingIterator::AddEntry(
- const uno::WeakReference< text::XFlatParagraphIterator >& xFlatParaIterator,
- const uno::WeakReference< text::XFlatParagraph >& xFlatPara,
+ const uno::Reference< text::XFlatParagraphIterator >& xFlatParaIterator,
+ const uno::Reference< text::XFlatParagraph >& xFlatPara,
const OUString & rDocId,
sal_Int32 nStartIndex,
bool bAutomatic )
{
// we may not need/have a xFlatParaIterator (e.g. if checkGrammarAtPos was called)
// but we always need a xFlatPara...
- uno::Reference< text::XFlatParagraph > xPara( xFlatPara );
- if (!xPara.is())
+ if (!xFlatPara.is())
return;
FPEntry aNewFPEntry;
diff --git a/linguistic/source/gciterator.hxx b/linguistic/source/gciterator.hxx
index 18984d398165..e25b15a96226 100644
--- a/linguistic/source/gciterator.hxx
+++ b/linguistic/source/gciterator.hxx
@@ -29,7 +29,6 @@
#include <com/sun/star/util/XChangesBatch.hpp>
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/weakref.hxx>
#include <osl/mutex.hxx>
#include <osl/conditn.hxx>
#include <osl/thread.h>
@@ -52,7 +51,7 @@ struct FPEntry
css::uno::Reference< css::text::XFlatParagraphIterator > m_xParaIterator;
// flat paragraph
- css::uno::WeakReference< css::text::XFlatParagraph > m_xPara;
+ css::uno::Reference< css::text::XFlatParagraph > m_xPara;
// document ID to identify different documents
OUString m_aDocId;
@@ -126,8 +125,8 @@ class GrammarCheckingIterator:
OUString GetOrCreateDocId( const css::uno::Reference< css::lang::XComponent > &xComp );
void AddEntry(
- const css::uno::WeakReference< css::text::XFlatParagraphIterator >& xFlatParaIterator,
- const css::uno::WeakReference< css::text::XFlatParagraph >& xFlatPara,
+ const css::uno::Reference< css::text::XFlatParagraphIterator >& xFlatParaIterator,
+ const css::uno::Reference< css::text::XFlatParagraph >& xFlatPara,
const OUString &rDocId, sal_Int32 nStartIndex, bool bAutomatic );
void ProcessResult( const css::linguistic2::ProofreadingResult &rRes,