diff options
Diffstat (limited to 'sd/source/ui/slidesorter')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlideSorterView.cxx | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx index 703d0c5fed36..a9f691e35de7 100644 --- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx +++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx @@ -864,11 +864,10 @@ void SlideSorterController::PageNameHasChanged (int nPageIndex, const OUString& if (pChild == nullptr || pChild->GetPage() == nullptr) return; - OUString sOldName (rsOldName); OUString sNewName (pChild->GetPage()->GetName()); pChild->FireAccessibleEvent( css::accessibility::AccessibleEventId::NAME_CHANGED, - makeAny(sOldName), + makeAny(rsOldName), makeAny(sNewName)); } diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx index c361dd3a713a..edb97445ae7d 100644 --- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx +++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx @@ -815,22 +815,21 @@ bool SlideSorterView::SetState ( const PageDescriptor::State eState, const bool bStateValue) { - model::SharedPageDescriptor pDescriptor (rpDescriptor); - if ( ! pDescriptor) + if ( ! rpDescriptor) return false; - const bool bModified (pDescriptor->SetState(eState, bStateValue)); + const bool bModified (rpDescriptor->SetState(eState, bStateValue)); if ( ! bModified) return false; // When the page object is not visible (i.e. not on the screen then // nothing has to be painted. - if (pDescriptor->HasState(PageDescriptor::ST_Visible)) + if (rpDescriptor->HasState(PageDescriptor::ST_Visible)) { // For most states a change of that state leads to visible // difference and we have to request a repaint. if (eState != PageDescriptor::ST_WasSelected) - RequestRepaint(pDescriptor); + RequestRepaint(rpDescriptor); } return bModified; |