summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-10-04 16:55:59 +0300
committerDennis Francis <dennis.francis@collabora.co.uk>2017-11-21 16:09:43 +0530
commitf1ce841884a73b72c70824eb2f4933beb2cf6927 (patch)
tree795eed98ce8c2ba797a2dc2b24b99f4faf77a184 /sc
parent0e75c5d5d26724402adfc9c6e939b59d4d29bc22 (diff)
Move ScDocument::GetNonThreadedContext() inline
Did not have any impact on performance, though. Change-Id: I7e769b4a74e0ff9e0aabfb7e291fc4b987441954
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/document.hxx6
-rw-r--r--sc/source/core/data/document.cxx7
2 files changed, 5 insertions, 8 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index f37e8e7d856e..8b138378dda3 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -560,7 +560,11 @@ public:
SC_DLLPUBLIC void InitDrawLayer( SfxObjectShell* pDocShell = nullptr );
- SC_DLLPUBLIC ScInterpreterContext GetNonThreadedContext() const;
+ ScInterpreterContext GetNonThreadedContext() const
+ {
+ // GetFormatTable() asserts that we are not in a threaded calculation
+ return ScInterpreterContext(*this, GetFormatTable());
+ }
SC_DLLPUBLIC sfx2::LinkManager* GetLinkManager();
SC_DLLPUBLIC const sfx2::LinkManager* GetLinkManager() const;
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 0df71931c355..73f450dc8163 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -6769,13 +6769,6 @@ ScMutationGuard::~ScMutationGuard()
#endif
}
-ScInterpreterContext ScDocument::GetNonThreadedContext() const
-{
- // GetFormatTable() asserts that we are not in a threaded calculation
- ScInterpreterContext aResult(*this, GetFormatTable());
- return aResult;
-}
-
thread_local ScDocumentThreadSpecific ScDocument::maThreadSpecific;
ScRecursionHelper& ScDocument::GetRecursionHelper()