typo
This commit is contained in:
parent
b9b26f1cd4
commit
6974862125
1 changed files with 4 additions and 4 deletions
|
|
@ -159,7 +159,7 @@ namespace Crafter {
|
||||||
// Clear previous timing data
|
// Clear previous timing data
|
||||||
this->listenerTimes.clear();
|
this->listenerTimes.clear();
|
||||||
|
|
||||||
auto listenersCopy = listenerSlice.second;
|
auto listenersCopy = this->listeners;
|
||||||
for (const auto& listenerSlice : listenersCopy) {
|
for (const auto& listenerSlice : listenersCopy) {
|
||||||
for (const auto& listener : listenerSlice.second) {
|
for (const auto& listener : listenerSlice.second) {
|
||||||
auto start = std::chrono::high_resolution_clock::now();
|
auto start = std::chrono::high_resolution_clock::now();
|
||||||
|
|
@ -170,7 +170,7 @@ namespace Crafter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
auto listenersCopy = listenerSlice.second;
|
auto listenersCopy = this->listeners;
|
||||||
for (const auto& listenerSlice : listenersCopy) {
|
for (const auto& listenerSlice : listenersCopy) {
|
||||||
for (const auto& listener : listenerSlice.second) {
|
for (const auto& listener : listenerSlice.second) {
|
||||||
listener->function();
|
listener->function();
|
||||||
|
|
@ -191,7 +191,7 @@ namespace Crafter {
|
||||||
// Clear previous timing data
|
// Clear previous timing data
|
||||||
this->listenerTimes.clear();
|
this->listenerTimes.clear();
|
||||||
|
|
||||||
auto listenersCopy = listenerSlice.second;
|
auto listenersCopy = this->listeners;
|
||||||
for (const auto& listenerSlice : listenersCopy) {
|
for (const auto& listenerSlice : listenersCopy) {
|
||||||
for (const auto& listener : listenerSlice.second) {
|
for (const auto& listener : listenerSlice.second) {
|
||||||
auto start = std::chrono::high_resolution_clock::now();
|
auto start = std::chrono::high_resolution_clock::now();
|
||||||
|
|
@ -202,7 +202,7 @@ namespace Crafter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
auto listenersCopy = listenerSlice.second;
|
auto listenersCopy = this->listeners;
|
||||||
for (const auto& listenerSlice : listenersCopy) {
|
for (const auto& listenerSlice : listenersCopy) {
|
||||||
for (const auto& listener : listenerSlice.second) {
|
for (const auto& listener : listenerSlice.second) {
|
||||||
listener->function(data);
|
listener->function(data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue