summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-16 12:35:30 +0200
committerNoel Grandin <noel@peralex.com>2015-10-16 12:35:54 +0200
commit8d44385bf64c1ea9bdb9100fc7ed005ac7071968 (patch)
tree4d0897a98757d40ff212f2328a9a8bd433aeaf61 /include
parente324766d54ef67625b4ca9ba727a95316c2a1dc5 (diff)
convert Link<> to typed
Change-Id: I48893ac7130ad671864faa5eb55409b21cdda77e
Diffstat (limited to 'include')
-rw-r--r--include/svtools/breadcrumb.hxx2
-rw-r--r--include/vcl/fixedhyper.hxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/include/svtools/breadcrumb.hxx b/include/svtools/breadcrumb.hxx
index c57c0e3e1fe0..e87ab6831dff 100644
--- a/include/svtools/breadcrumb.hxx
+++ b/include/svtools/breadcrumb.hxx
@@ -46,7 +46,7 @@ class SVT_DLLPUBLIC Breadcrumb : public VclHBox
void appendField();
bool showField( unsigned int nIndex, unsigned int nWidthMax );
- DECL_LINK ( ClickLinkHdl, FixedHyperlink* );
+ DECL_LINK_TYPED( ClickLinkHdl, FixedHyperlink&, void );
public:
Breadcrumb( vcl::Window* pParent, WinBits nWinStyle = 0 );
diff --git a/include/vcl/fixedhyper.hxx b/include/vcl/fixedhyper.hxx
index 98d4de7c00af..b266f74ce1dd 100644
--- a/include/vcl/fixedhyper.hxx
+++ b/include/vcl/fixedhyper.hxx
@@ -28,7 +28,7 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
private:
long m_nTextLen;
Pointer m_aOldPointer;
- Link<> m_aClickHdl;
+ Link<FixedHyperlink&,void> m_aClickHdl;
OUString m_sURL;
/** initializes the font (link color and underline).
@@ -91,22 +91,22 @@ class VCL_DLLPUBLIC FixedHyperlink : public FixedText
m_aClickHdl is called if the text is clicked.
*/
- inline void SetClickHdl( const Link<>& rLink ) { m_aClickHdl = rLink; }
+ inline void SetClickHdl( const Link<FixedHyperlink&,void>& rLink ) { m_aClickHdl = rLink; }
// ::FixedHyperbaseLink
/** sets the URL of the hyperlink and uses it as tooltip. */
- void SetURL(const OUString& rNewURL);
+ void SetURL(const OUString& rNewURL);
/** returns the URL of the hyperlink.
@return
m_sURL
*/
- const OUString& GetURL() const { return m_sURL;}
+ const OUString& GetURL() const { return m_sURL;}
/** sets new text and recalculates the text length. */
- virtual void SetText(const OUString& rNewDescription) override;
+ virtual void SetText(const OUString& rNewDescription) override;
};
#endif