+ fix warnings:

-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
This commit is contained in:
wmayer
2016-04-13 14:26:38 +02:00
parent d604abdfc4
commit 6380881b58
13 changed files with 106 additions and 325 deletions

View File

@@ -605,7 +605,7 @@ const string PropertyLinkSubList::getPyReprString()
std::stringstream strm;
strm << "[";
for ( int i = 0 ; i < this->_lSubList.size() ; i++) {
for (std::size_t i = 0; i < this->_lSubList.size(); i++) {
if (i>0)
strm << ",(";
else
@@ -628,7 +628,7 @@ DocumentObject *PropertyLinkSubList::getValue() const
{
App::DocumentObject* ret = 0;
//FIXME: cache this to avoid iterating each time, to improve speed
for (int i = 0 ; i < this->_lValueList.size() ; i++){
for (std::size_t i = 0; i < this->_lValueList.size(); i++) {
if (ret == 0)
ret = this->_lValueList[i];
if (ret != this->_lValueList[i])