Skip to content

Commit 562d209

Browse files
committed
trackable: Use emplace_back() instead of push_back().
Found by clang-tidy.
1 parent cacfd54 commit 562d209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigc++/trackable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ trackable_callback_list::add_callback(notifiable* data, func_destroy_notify func
119119
// I'd consider this a serious application bug, since the app is likely to segfault.
120120
// But then, how should we handle it? Throw an exception? Martin.
121121
if (!clearing_)
122-
callbacks_.push_back(trackable_callback(data, func));
122+
callbacks_.emplace_back(trackable_callback(data, func));
123123
}
124124

125125
void

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy