Commit f82ccd26 authored by David Thompson's avatar David Thompson

Fix warnings.

parent df5afb93
......@@ -335,7 +335,7 @@ SMTKCORE_EXPORT void from_json(const json& j, smtk::attribute::ResourcePtr& res)
std::vector<smtk::attribute::DefinitionPtr> defs;
for (auto strIter = excObj.begin(); strIter != excObj.end(); strIter++)
{
auto def = res->findDefinition(strIter->get<std::string>());
def = res->findDefinition(strIter->get<std::string>());
if (def)
{
defs.push_back(def);
......@@ -385,7 +385,7 @@ SMTKCORE_EXPORT void from_json(const json& j, smtk::attribute::ResourcePtr& res)
auto preDefs = preObj.at("Prerequisite");
for (auto strIter = preDefs.begin(); strIter != preDefs.end(); strIter++)
{
auto def = res->findDefinition(strIter->get<std::string>());
def = res->findDefinition(strIter->get<std::string>());
if (def)
{
tdef->addPrerequisite(def);
......
......@@ -189,7 +189,7 @@ int TestResourceManager(int, char** const)
auto indexA = ResourceA::type_index;
auto resourcesByIndex =
resourceManager->resources().get<smtk::resource::IndexTag>().equal_range(indexA);
int count = std::distance(resourcesByIndex.first, resourcesByIndex.second);
auto count = std::distance(resourcesByIndex.first, resourcesByIndex.second);
smtkTest(count == 2, "Fetched " << count << " instead of 2 resources by type-index failed.");
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment