PVS-StudioWarnings

PVS-Studio warning V655 for KDE4

Nov 13th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. void EntryDetails::updateButtons()
  2. {
  3.   ....
  4.   foreach (....) {
  5.     QString text = info.name;
  6.     if (!info.distributionType.trimmed().isEmpty()) {
  7.         text + " (" + info.distributionType.trimmed() + ")";//<==
  8.     }
  9.     QAction* installAction =
  10.       installMenu->addAction(KIcon("dialog-ok"), text);
  11.     installAction->setData(info.id);
  12.   }
  13.   ....
  14. }
  15.  
  16. This suspicious code was found in KDE4 project by PVS-Studio static code analyzer.
  17. Warning message is:
  18. V655 The strings was concatenated but are not utilized. Consider inspecting the expression. entrydetailsdialog.cpp 225
  19.  
  20. PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment