From b32e1aae115b089b63f4d630a80f48a59e55ceb1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 7 Aug 2016 13:38:41 +0200 Subject: [PATCH] fix compiler warnings --- src/Mod/Part/Gui/Command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/Gui/Command.cpp b/src/Mod/Part/Gui/Command.cpp index b7a4acfaa..69b17ac63 100644 --- a/src/Mod/Part/Gui/Command.cpp +++ b/src/Mod/Part/Gui/Command.cpp @@ -353,7 +353,7 @@ void CmdPartCommon::activated(int iMsg) std::vector Sel = getSelection().getSelectionEx(0, Part::Feature::getClassTypeId()); //test if selected object is a compound, and if it is, look how many children it has... - int numShapes = 0; + std::size_t numShapes = 0; if (Sel.size() == 1){ numShapes = 1; //to be updated later in code, if Gui::SelectionObject selobj = Sel[0]; @@ -454,7 +454,7 @@ void CmdPartFuse::activated(int iMsg) std::vector Sel = getSelection().getSelectionEx(0, Part::Feature::getClassTypeId()); //test if selected object is a compound, and if it is, look how many children it has... - int numShapes = 0; + std::size_t numShapes = 0; if (Sel.size() == 1){ numShapes = 1; //to be updated later in code Gui::SelectionObject selobj = Sel[0];