summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2014-01-24 21:18:25 (GMT)
committerRemko Tronçon <git@el-tramo.be>2014-01-24 21:18:25 (GMT)
commit3c2225d42cc6b20618246f4b6de6fd6335c6b474 (patch)
treeef942b718747d1943dc1b456244c37287bd76735 /Sluift/ElementConvertors/PubSubItemsConvertor.cpp
parentfe460ca46bff4f9e735db86ca072eafb3a5c8f2d (diff)
downloadswift-3c2225d42cc6b20618246f4b6de6fd6335c6b474.zip
swift-3c2225d42cc6b20618246f4b6de6fd6335c6b474.tar.bz2
Sluift: 'subscriptionid' -> 'subscription_id'
Change-Id: I1e02c4b96be4e8da711f4b3bed06b318061dd116
Diffstat (limited to 'Sluift/ElementConvertors/PubSubItemsConvertor.cpp')
-rw-r--r--Sluift/ElementConvertors/PubSubItemsConvertor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Sluift/ElementConvertors/PubSubItemsConvertor.cpp b/Sluift/ElementConvertors/PubSubItemsConvertor.cpp
index 24ad6c8..03df694 100644
--- a/Sluift/ElementConvertors/PubSubItemsConvertor.cpp
+++ b/Sluift/ElementConvertors/PubSubItemsConvertor.cpp
@@ -52,7 +52,7 @@ boost::shared_ptr<PubSubItems> PubSubItemsConvertor::doConvertFromLua(lua_State*
result->setMaximumItems(boost::numeric_cast<unsigned int>(lua_tonumber(L, -1)));
}
lua_pop(L, 1);
- lua_getfield(L, -1, "subscriptionid");
+ lua_getfield(L, -1, "subscription_id");
if (lua_isstring(L, -1)) {
result->setSubscriptionID(std::string(lua_tostring(L, -1)));
}
@@ -81,7 +81,7 @@ void PubSubItemsConvertor::doConvertToLua(lua_State* L, boost::shared_ptr<PubSub
}
if (payload->getSubscriptionID()) {
lua_pushstring(L, (*payload->getSubscriptionID()).c_str());
- lua_setfield(L, -2, "subscriptionid");
+ lua_setfield(L, -2, "subscription_id");
}
}
@@ -92,6 +92,6 @@ boost::optional<LuaElementConvertor::Documentation> PubSubItemsConvertor::getDoc
"- `node`: string\n"
"- `items`: array<@{PubSubItem}>\n"
"- `maximum_items`: number (Optional)\n"
- "- `subscriptionid`: string (Optional)\n"
+ "- `subscription_id`: string (Optional)\n"
);
}