Created
January 21, 2017 21:42
-
-
Save squix78/f7f7c0021d2b6decd4a997f6dba235ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[..] | |
void ExampleListener::key(String key) { | |
currentKey_ = key; | |
} | |
void ExampleListener::value(String key) { | |
if (currentKey_ == "name") { | |
name_ = value; | |
} else if (currentKey_ == "city") { | |
city_ = value; | |
} | |
} | |
[..] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That won't work, will it?
ExampleListener::value(String key)
should actually beExampleListener::value(String value)
.