Merge pull request #957 from PhenomRetroShare/Fix_CppCheckerError

Fix cpp checker error
This commit is contained in:
csoler 2017-07-26 13:54:44 +02:00 committed by GitHub
commit 34ddf71703
5 changed files with 19 additions and 6 deletions

View file

@ -128,6 +128,8 @@ RsRegularExpression::Expression * AdvancedSearchDialog::getRsExpr()
// iterate through the items in elements and
#warning Phenom (2017-07-21): I don't know if it is a real memLeak for wholeExpression. If not remove this warning and add a comment how it is deleted.
// cppcheck-suppress memleak
for (int i = 1; i < expressions->size(); ++i) {
// extract the expression information and compound it with the
// first expression

View file

@ -395,7 +395,7 @@ ChatPage::load()
// load personal invites
//
#ifdef TO_BE_DONE
for()
for(;;)
{
QListWidgetItem *item = new QListWidgetItem;
item->setData(Qt::DisplayRole,tr("Private chat invite from")+" "+QString::fromUtf8(detail.name.c_str())) ;