mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 13:56:17 +00:00
Fixed t_string delegating to the improper copy constructor,
...the really slow one.
This commit is contained in:
parent
4be292c05e
commit
ea5b2445e6
@ -43,8 +43,7 @@ public:
|
||||
|
||||
shared_object() : val_(0) { set(T()); }
|
||||
|
||||
template <typename U>
|
||||
shared_object(const U& o) : val_(0) { set(o); }
|
||||
shared_object(const T &o) : val_(0) { set(o); }
|
||||
|
||||
shared_object(const shared_object& o) : val_(o.val_) {
|
||||
assert(valid());
|
||||
|
Loading…
x
Reference in New Issue
Block a user