[gtkmm-documentation] signals/custom example: Use the sigc::signal<R(Args...)> syntax
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] signals/custom example: Use the sigc::signal<R(Args...)> syntax
- Date: Thu, 24 Nov 2016 12:53:12 +0000 (UTC)
commit 2ad875a149d338f52fbceb19a419c7e4634b0160
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Thu Nov 24 13:48:57 2016 +0100
signals/custom example: Use the sigc::signal<R(Args...)> syntax
examples/book/signals/custom/server.h | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/examples/book/signals/custom/server.h b/examples/book/signals/custom/server.h
index b29340e..690713b 100644
--- a/examples/book/signals/custom/server.h
+++ b/examples/book/signals/custom/server.h
@@ -1,5 +1,3 @@
-//$Id: server.h 114 2004-02-10 14:50:18Z murrayc $ -*- c++ -*-
-
/* gtkmm example Copyright (C) 2002 gtkmm development team
*
* This program is free software; you can redistribute it and/or modify
@@ -30,7 +28,7 @@ public:
void do_something();
//signal accessor:
- typedef sigc::signal<void, bool, int> type_signal_something;
+ using type_signal_something = sigc::signal<void(bool, int)>;
type_signal_something signal_something();
protected:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]