diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/accessibility.cxx | 4 | ||||
-rw-r--r-- | starmath/source/document.cxx | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index b97dc5a5a6aa..cafaf43fa9a3 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -862,8 +862,8 @@ SmTextForwarder::~SmTextForwarder() IMPL_LINK(SmTextForwarder, NotifyHdl, EENotify&, rNotify, void) { ::std::unique_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( &rNotify ); - if (aHint.get()) - rEditSource.GetBroadcaster().Broadcast( *aHint.get() ); + if (aHint) + rEditSource.GetBroadcaster().Broadcast(*aHint); } sal_Int32 SmTextForwarder::GetParagraphCount() const diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 1b5a9bfe9c33..a32525745cf1 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -464,10 +464,7 @@ SmCursor& SmDocShell::GetCursor(){ return *mpCursor; } -bool SmDocShell::HasCursor() -{ - return mpCursor.get() != nullptr; -} +bool SmDocShell::HasCursor() { return mpCursor != nullptr; } SmPrinterAccess::SmPrinterAccess( SmDocShell &rDocShell ) { |