[libsigc++2] signal_base, trackable: Make move operations noexcept.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2] signal_base, trackable: Make move operations noexcept.
- Date: Tue, 1 Sep 2015 14:30:34 +0000 (UTC)
commit cef07d89849d3f978e6cd73a7a3b7977a032d146
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 1 16:30:10 2015 +0200
signal_base, trackable: Make move operations noexcept.
sigc++/signal_base.cc | 4 ++--
sigc++/signal_base.h | 4 ++--
sigc++/trackable.cc | 4 ++--
sigc++/trackable.h | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/sigc++/signal_base.cc b/sigc++/signal_base.cc
index 20074ec..1504f62 100644
--- a/sigc++/signal_base.cc
+++ b/sigc++/signal_base.cc
@@ -167,7 +167,7 @@ signal_base::signal_base(const signal_base& src)
impl_->reference();
}
-signal_base::signal_base(signal_base&& src)
+signal_base::signal_base(signal_base&& src) noexcept
: trackable(std::move(src)),
impl_(std::move(src.impl_))
{
@@ -248,7 +248,7 @@ signal_base& signal_base::operator=(const signal_base& src)
return *this;
}
-signal_base& signal_base::operator=(signal_base&& src)
+signal_base& signal_base::operator=(signal_base&& src) noexcept
{
trackable::operator=(std::move(src));
impl_ = std::move(src.impl_);
diff --git a/sigc++/signal_base.h b/sigc++/signal_base.h
index 5b3d668..d80fd2d 100644
--- a/sigc++/signal_base.h
+++ b/sigc++/signal_base.h
@@ -284,13 +284,13 @@ struct SIGC_API signal_base : public trackable
signal_base(const signal_base& src);
- signal_base(signal_base&& src);
+ signal_base(signal_base&& src) noexcept;
~signal_base();
signal_base& operator=(const signal_base& src);
- signal_base& operator=(signal_base&& src);
+ signal_base& operator=(signal_base&& src) noexcept;
/** Returns whether the list of slots is empty.
* @return @p true if the list of slots is empty.
diff --git a/sigc++/trackable.cc b/sigc++/trackable.cc
index 16f68b5..8d634d0 100644
--- a/sigc++/trackable.cc
+++ b/sigc++/trackable.cc
@@ -38,7 +38,7 @@ trackable::trackable(const trackable& /*src*/)
: callback_list_(nullptr)
{}
-trackable::trackable(trackable&& src)
+trackable::trackable(trackable&& src) noexcept
: callback_list_(std::move(src.callback_list_))
{
src.callback_list_ = nullptr;
@@ -52,7 +52,7 @@ trackable& trackable::operator=(const trackable& src)
return *this;
}
-trackable& trackable::operator=(trackable&& src)
+trackable& trackable::operator=(trackable&& src) noexcept
{
if(this != &src)
notify_callbacks(); //Make sure that we have finished with existing stuff before replacing it.
diff --git a/sigc++/trackable.h b/sigc++/trackable.h
index 894d688..606adfd 100644
--- a/sigc++/trackable.h
+++ b/sigc++/trackable.h
@@ -115,11 +115,11 @@ struct SIGC_API trackable
trackable(const trackable& src);
- trackable(trackable&& src);
+ trackable(trackable&& src) noexcept;
trackable& operator=(const trackable& src);
- trackable& operator=(trackable&& src);
+ trackable& operator=(trackable&& src) noexcept;
~trackable();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]