aboutsummaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-04 01:47:49 +0800
committercrupest <crupest@outlook.com>2018-10-04 01:47:49 +0800
commit01ab4511d3006e9f65ff96ae63b21de14b41bc48 (patch)
treee4fa991e7784571c164301ff7ade5aa1ef515744 /src/base.cpp
parent30ecda8bb354d5982978af97aa90b5f49d9ea195 (diff)
downloadcru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.gz
cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.bz2
cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.zip
...
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 57a4848e..ce5554aa 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -18,12 +18,12 @@ namespace cru
return result;
}
- void PropertyChangedNotifyObject::AddPropertyChangedListener(FunctionPtr<void(String)> listener)
+ void PropertyChangedNotifyObject::AddPropertyChangedListener(FunctionPtr<void(const StringView&)> listener)
{
listeners_.push_back(std::move(listener));
}
- void PropertyChangedNotifyObject::RemovePropertyChangedListener(const FunctionPtr<void(String)>& listener)
+ void PropertyChangedNotifyObject::RemovePropertyChangedListener(const FunctionPtr<void(const StringView&)>& listener)
{
for (auto i = listeners_.cbegin(); i != listeners_.cend(); ++i)
if (*i == listener)
@@ -33,7 +33,7 @@ namespace cru
}
}
- void PropertyChangedNotifyObject::RaisePropertyChangedEvent(String property_name)
+ void PropertyChangedNotifyObject::RaisePropertyChangedEvent(const StringView& property_name)
{
for (const auto& listener : listeners_)
(*listener)(property_name);