summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-13 10:43:22 +0200
committerNoel Grandin <noel@peralex.com>2015-08-13 10:49:58 +0200
commitc9f20fbc2caf04629cc56f556b4a09bd6599a959 (patch)
tree1115e89326685a6bc44f780f96176a2d4a89e983 /include
parentce7cec07d37747051172ebc9864c016ccf34fe14 (diff)
make Link<> instances typed
Change-Id: I0805c49b1ae7f324d5235e46b3c55e67239195c7
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/templatedlg.hxx2
-rw-r--r--include/sfx2/thumbnailview.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index 2b0426e47e34..9272c9088efc 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -70,7 +70,7 @@ private:
DECL_LINK_TYPED(TBXTemplateHdl, ToolBox*, void);
DECL_LINK_TYPED(TBXDropdownHdl, ToolBox*, void);
- DECL_LINK(TVItemStateHdl, const ThumbnailViewItem*);
+ DECL_LINK_TYPED(TVItemStateHdl, const ThumbnailViewItem*, void);
DECL_LINK(MenuSelectHdl, Menu*);
DECL_LINK(MoveMenuSelectHdl, Menu*);
diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx
index a522ef8e86c7..fa4563d3c732 100644
--- a/include/sfx2/thumbnailview.hxx
+++ b/include/sfx2/thumbnailview.hxx
@@ -231,7 +231,7 @@ public:
void sortItems (const std::function<bool (const ThumbnailViewItem*,
const ThumbnailViewItem*) > &func);
- void setItemStateHdl (const Link<> &aLink) { maItemStateHdl = aLink; }
+ void setItemStateHdl (const Link<const ThumbnailViewItem*,void> &aLink) { maItemStateHdl = aLink; }
virtual void Resize() SAL_OVERRIDE;
@@ -323,7 +323,7 @@ protected:
Color maHighlightTextColor; ///< Color of the text for the higlighted item.
double mfHighlightTransparence; ///< Transparence of the highlight.
- Link<> maItemStateHdl;
+ Link<const ThumbnailViewItem*, void> maItemStateHdl;
ThumbnailItemAttributes* mpItemAttrs;
std::function<bool (const ThumbnailViewItem*)> maFilterFunc;