Merge pull request #170 from f3nix/gcc-warnings-2

Fix some GCC warnings.
This commit is contained in:
wwmayer 2016-05-20 22:23:36 +02:00
commit 711213d58e
3 changed files with 2 additions and 11 deletions

View File

@ -197,17 +197,8 @@
</layout>
</item>
</layout>
<zorder>layoutWidget</zorder>
<zorder>minimum</zorder>
<zorder>maximum</zorder>
<zorder>Slider</zorder>
<zorder>line</zorder>
<zorder>minimum</zorder>
<zorder>maximum</zorder>
<zorder></zorder>
<zorder>InsideOut</zorder>
<zorder>horizontalSpacer</zorder>
<zorder></zorder>
<zorder>line_2</zorder>
</widget>
<resources/>

View File

@ -250,7 +250,7 @@ PyObject* AttachEnginePy::getModeInfo(PyObject* args)
refTypeStringList &listOfCombinations = attacher.modeRefTypes.at(mmode);
for(const refTypeString &combination: listOfCombinations){
pyCombination = Py::List(combination.size());
for(int iref = 0 ; iref < combination.size() ; iref++){
for(std::size_t iref = 0; iref < combination.size(); iref++) {
pyCombination[iref] = Py::String(AttachEngine::getRefTypeName(combination[iref]));
}
pyListOfCombinations.append(pyCombination);

View File

@ -158,7 +158,7 @@ const char* AttachEngine::eRefTypeStrings[]= {
TYPESYSTEM_SOURCE_ABSTRACT(Attacher::AttachEngine, Base::BaseClass);
AttachEngine::AttachEngine()
: mapReverse(false), attachParameter(0.0), mapMode(mmDeactivated),
: mapMode(mmDeactivated), mapReverse(false), attachParameter(0.0),
surfU(0.0), surfV(0.0)
{
}