[core] fix logging so we don't use strings as a formatter

This commit is contained in:
Konstantin Käfer
2015-10-02 15:55:21 +02:00
parent bbf16b2b1d
commit 69564cc886
5 changed files with 6 additions and 6 deletions

View File

@@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
map.setStyleURL(newStyle.url);
view->setWindowTitle(newStyle.name);
mbgl::Log::Info(mbgl::Event::Setup, std::string("Changed style to: ") + newStyle.name);
mbgl::Log::Info(mbgl::Event::Setup, "Changed style to: %s", newStyle.name);
});
// Load style