Kaydet (Commit) a32eabb6 authored tarafından Caolán McNamara's avatar Caolán McNamara

Ovservation->Observation

Change-Id: I6e02df0d9619394f6a650b9ef6105bca0603c4af
Reviewed-on: https://gerrit.libreoffice.org/45032Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a05fe3a8
...@@ -57,7 +57,7 @@ void SelectionObserver::Context::Abort() ...@@ -57,7 +57,7 @@ void SelectionObserver::Context::Abort()
SelectionObserver::SelectionObserver (SlideSorter& rSlideSorter) SelectionObserver::SelectionObserver (SlideSorter& rSlideSorter)
: mrSlideSorter(rSlideSorter) : mrSlideSorter(rSlideSorter)
, mbIsOvservationActive(false) , mbIsObservationActive(false)
, mbPageEventOccurred(false) , mbPageEventOccurred(false)
, maInsertedPages() , maInsertedPages()
{ {
...@@ -69,7 +69,7 @@ SelectionObserver::~SelectionObserver() ...@@ -69,7 +69,7 @@ SelectionObserver::~SelectionObserver()
void SelectionObserver::NotifyPageEvent (const SdrPage* pSdrPage) void SelectionObserver::NotifyPageEvent (const SdrPage* pSdrPage)
{ {
if ( ! mbIsOvservationActive) if (!mbIsObservationActive)
return; return;
mbPageEventOccurred = true; mbPageEventOccurred = true;
...@@ -92,22 +92,22 @@ void SelectionObserver::NotifyPageEvent (const SdrPage* pSdrPage) ...@@ -92,22 +92,22 @@ void SelectionObserver::NotifyPageEvent (const SdrPage* pSdrPage)
void SelectionObserver::StartObservation() void SelectionObserver::StartObservation()
{ {
OSL_ASSERT(!mbIsOvservationActive); OSL_ASSERT(!mbIsObservationActive);
maInsertedPages.clear(); maInsertedPages.clear();
mbIsOvservationActive = true; mbIsObservationActive = true;
} }
void SelectionObserver::AbortObservation() void SelectionObserver::AbortObservation()
{ {
OSL_ASSERT(mbIsOvservationActive); OSL_ASSERT(mbIsObservationActive);
mbIsOvservationActive = false; mbIsObservationActive = false;
maInsertedPages.clear(); maInsertedPages.clear();
} }
void SelectionObserver::EndObservation() void SelectionObserver::EndObservation()
{ {
OSL_ASSERT(mbIsOvservationActive); OSL_ASSERT(mbIsObservationActive);
mbIsOvservationActive = false; mbIsObservationActive = false;
if (!mbPageEventOccurred) if (!mbPageEventOccurred)
return; return;
......
...@@ -65,7 +65,7 @@ public: ...@@ -65,7 +65,7 @@ public:
private: private:
SlideSorter& mrSlideSorter; SlideSorter& mrSlideSorter;
bool mbIsOvservationActive; bool mbIsObservationActive;
bool mbPageEventOccurred; bool mbPageEventOccurred;
::std::vector<const SdPage*> maInsertedPages; ::std::vector<const SdPage*> maInsertedPages;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment