Kaydet (Commit) 874f2d84 authored tarafından Noel Grandin's avatar Noel Grandin

second param of NotifyPreviewCreation is unused

ever since it was introduced in
    commit cd361fde
    Date:   Thu Apr 3 13:45:13 2008 +0000
    INTEGRATION: CWS presenterview (1.1.2); FILE ADDED

Change-Id: I480ca64d6c02b69f7a738ec1f914267fa4ea9e7a
Reviewed-on: https://gerrit.libreoffice.org/55283Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst e310ac4a
...@@ -49,9 +49,7 @@ public: ...@@ -49,9 +49,7 @@ public:
void RemovePreviewCreationNotifyListener (const Reference<drawing::XSlidePreviewCacheListener>& rxListener); void RemovePreviewCreationNotifyListener (const Reference<drawing::XSlidePreviewCacheListener>& rxListener);
// CacheContext // CacheContext
virtual void NotifyPreviewCreation ( virtual void NotifyPreviewCreation (CacheKey aKey) override;
CacheKey aKey,
const BitmapEx& rPreview) override;
virtual bool IsIdle() override; virtual bool IsIdle() override;
virtual bool IsVisible (CacheKey aKey) override; virtual bool IsVisible (CacheKey aKey) override;
virtual const SdrPage* GetPage (CacheKey aKey) override; virtual const SdrPage* GetPage (CacheKey aKey) override;
...@@ -246,8 +244,7 @@ void PresenterPreviewCache::PresenterCacheContext::RemovePreviewCreationNotifyLi ...@@ -246,8 +244,7 @@ void PresenterPreviewCache::PresenterCacheContext::RemovePreviewCreationNotifyLi
//----- CacheContext ---------------------------------------------------------- //----- CacheContext ----------------------------------------------------------
void PresenterPreviewCache::PresenterCacheContext::NotifyPreviewCreation ( void PresenterPreviewCache::PresenterCacheContext::NotifyPreviewCreation (
CacheKey aKey, CacheKey aKey)
const BitmapEx&)
{ {
if ( ! mxSlides.is()) if ( ! mxSlides.is())
return; return;
......
...@@ -155,7 +155,7 @@ void QueueProcessor::ProcessOneRequest ( ...@@ -155,7 +155,7 @@ void QueueProcessor::ProcessOneRequest (
mpCache->SetBitmap (pSdPage, aPreview, ePriorityClass!=NOT_VISIBLE); mpCache->SetBitmap (pSdPage, aPreview, ePriorityClass!=NOT_VISIBLE);
// Initiate a repaint of the new preview. // Initiate a repaint of the new preview.
mpCacheContext->NotifyPreviewCreation(aKey, aPreview); mpCacheContext->NotifyPreviewCreation(aKey);
} }
} }
} }
......
...@@ -44,12 +44,8 @@ public: ...@@ -44,12 +44,8 @@ public:
has been finished. has been finished.
@param aKey @param aKey
The key of the page for which the preview has been created. The key of the page for which the preview has been created.
@param aPreview
The newly created preview.
*/ */
virtual void NotifyPreviewCreation ( virtual void NotifyPreviewCreation (CacheKey aKey) = 0;
CacheKey aKey,
const BitmapEx& rPreview) = 0;
/** Called to determine whether the system is idle and a preview can be /** Called to determine whether the system is idle and a preview can be
created without annoying the user. created without annoying the user.
......
...@@ -45,9 +45,7 @@ ViewCacheContext::~ViewCacheContext() ...@@ -45,9 +45,7 @@ ViewCacheContext::~ViewCacheContext()
{ {
} }
void ViewCacheContext::NotifyPreviewCreation ( void ViewCacheContext::NotifyPreviewCreation(cache::CacheKey aKey)
cache::CacheKey aKey,
const BitmapEx&)
{ {
const model::SharedPageDescriptor pDescriptor (GetDescriptor(aKey)); const model::SharedPageDescriptor pDescriptor (GetDescriptor(aKey));
if (pDescriptor.get() != nullptr) if (pDescriptor.get() != nullptr)
......
...@@ -41,7 +41,7 @@ class ViewCacheContext : public cache::CacheContext ...@@ -41,7 +41,7 @@ class ViewCacheContext : public cache::CacheContext
public: public:
explicit ViewCacheContext (SlideSorter& rSlideSorter); explicit ViewCacheContext (SlideSorter& rSlideSorter);
virtual ~ViewCacheContext() override; virtual ~ViewCacheContext() override;
virtual void NotifyPreviewCreation (cache::CacheKey aKey, const BitmapEx& rPreview) override; virtual void NotifyPreviewCreation (cache::CacheKey aKey) override;
virtual bool IsIdle() override; virtual bool IsIdle() override;
virtual bool IsVisible (cache::CacheKey aKey) override; virtual bool IsVisible (cache::CacheKey aKey) override;
virtual const SdrPage* GetPage (cache::CacheKey aKey) override; virtual const SdrPage* GetPage (cache::CacheKey aKey) override;
......
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