summaryrefslogtreecommitdiff
path: root/sigc++
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-05-16 15:27:52 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-05-16 15:27:52 +0200
commit6b5c871a378c1d57309800271b9b0e9010bda084 (patch)
tree82c48186eb462cb71b3d053b43358ef06d7b21a3 /sigc++
parent6193a2ce3320511c4d9a8d1fbe2f46fd0e086a43 (diff)
downloadsigc++-6b5c871a378c1d57309800271b9b0e9010bda084.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'sigc++')
-rw-r--r--sigc++/weak_raw_ptr.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sigc++/weak_raw_ptr.h b/sigc++/weak_raw_ptr.h
index c2e3fcb..7d67dbc 100644
--- a/sigc++/weak_raw_ptr.h
+++ b/sigc++/weak_raw_ptr.h
@@ -37,22 +37,22 @@ struct weak_raw_ptr : public sigc::notifiable
inline weak_raw_ptr()
: p_(nullptr)
{}
-
+
inline weak_raw_ptr(T* p) noexcept
: p_(p)
{
if(!p)
return;
-
+
p->add_destroy_notify_callback(this, &notify_object_invalidated);
}
-
+
inline weak_raw_ptr(const weak_raw_ptr& src) noexcept
: p_(src.p_)
{
p_->add_destroy_notify_callback(this, &notify_object_invalidated);
}
-
+
inline weak_raw_ptr& operator=(const weak_raw_ptr& src) noexcept
{
if(p_) {
@@ -68,14 +68,14 @@ struct weak_raw_ptr : public sigc::notifiable
//TODO:
weak_raw_ptr(weak_raw_ptr&& src) = delete;
weak_raw_ptr& operator=(weak_raw_ptr&& src) = delete;
-
+
inline ~weak_raw_ptr() noexcept
{
if (p_) {
p_->remove_destroy_notify_callback(this);
}
}
-
+
inline explicit operator bool() const noexcept
{
return p_ != nullptr;
@@ -98,7 +98,7 @@ private:
self->p_ = nullptr;
}
-
+
T* p_;
};