From b343f4e552cdab5fae0ffa40d9c115a0189c5723 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sat, 27 Sep 2014 15:33:16 +0200 Subject: [PATCH] GCC compile fixes --- src/scenegraph/scenegraph.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/scenegraph/scenegraph.cpp b/src/scenegraph/scenegraph.cpp index 12ffdf1388..5bceaa96dd 100644 --- a/src/scenegraph/scenegraph.cpp +++ b/src/scenegraph/scenegraph.cpp @@ -81,12 +81,13 @@ int property_setValue(lua_State* L) { openspace::properties::Property* prop = property(uri); if (!prop) - return luaL_error(L, "Property with URL '%s' could not be found", uri); + return luaL_error(L, "Property with URL '%s' could not be found", uri.c_str()); if (type != prop->typeLua()) return luaL_error(L, "Property '%s' does not accept input of type '%s'. \ - Requested type: '%s'", uri, luaTypeToString(type), - luaTypeToString(prop->typeLua())); + Requested type: '%s'", uri.c_str(), + luaTypeToString(type).c_str(), + luaTypeToString(prop->typeLua()).c_str()); else prop->setLua(L); @@ -108,7 +109,7 @@ int property_getValue(lua_State* L) { openspace::properties::Property* prop = property(uri); if (!prop) - return luaL_error(L, "Property with URL '%s' could not be found", uri); + return luaL_error(L, "Property with URL '%s' could not be found", uri.c_str()); else prop->getLua(L); return 1;