1
0
Fork 0
Commit graph

2 commits

Author SHA1 Message Date
c09febc4d8 examples/events/EventsExample.cpp: store std::string instead of char pointer.
Some compilers (ehm, microsoft) returns a temporary variable for event.key.getKeyName() that is only valid during the statement and not scope.

Fix this by storing std::string instead. So the object's lifetime is the entire if statement.
2020-10-14 13:50:52 +02:00
49f42e98f4 Adding Event example 2020-10-14 13:21:16 +02:00