Skip to content

Instantly share code, notes, and snippets.

@squix78
Created January 21, 2017 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squix78/f7f7c0021d2b6decd4a997f6dba235ae to your computer and use it in GitHub Desktop.
Save squix78/f7f7c0021d2b6decd4a997f6dba235ae to your computer and use it in GitHub Desktop.
[..]
void ExampleListener::key(String key) {
currentKey_ = key;
}
void ExampleListener::value(String key) {
if (currentKey_ == "name") {
name_ = value;
} else if (currentKey_ == "city") {
city_ = value;
}
}
[..]
@marcelstoer
Copy link

That won't work, will it?

ExampleListener::value(String key) should actually be ExampleListener::value(String value).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment