From d7f4b08844e65690c00fafa0b5e2af747334f6fe Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Tue, 2 Aug 2016 18:18:24 -0500 Subject: [PATCH] Making some small tweaks for consistency / code format --- cmake/Modules/FindJsonCpp.cmake | 8 ++------ src/KeyFrame.cpp | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cmake/Modules/FindJsonCpp.cmake b/cmake/Modules/FindJsonCpp.cmake index c9292c33..6ce9887e 100644 --- a/cmake/Modules/FindJsonCpp.cmake +++ b/cmake/Modules/FindJsonCpp.cmake @@ -1,10 +1,6 @@ -# Find jsoncpp +# - Try to find JsonCpp # -# Find the jsoncpp includes and library -# -# if you nee to add a custom library search path, do it via via CMAKE_PREFIX_PATH -# -# This module defines +# Once done this will define # JSONCPP_INCLUDE_DIRS, where to find header, etc. # JSONCPP_LIBRARIES, the libraries needed to use jsoncpp. # JSONCPP_FOUND, If false, do not try to use jsoncpp. diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index 9a939b58..2c2e9161 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -367,7 +367,7 @@ void Keyframe::SetJsonValue(Json::Value root) { if (!root["Points"].isNull()) // loop through points - for (unsigned int x = 0; x < root["Points"].size(); x++) { + for (long int x = 0; x < root["Points"].size(); x++) { // Get each point Json::Value existing_point = root["Points"][x];