[bug][patch] languages/cpp/problemreporter

Stephan Diederich stephan.diederich at googlemail.com
Mon Oct 30 15:57:03 UTC 2006


Hi there,

the attached patch fixes a bug in the cpp-problemreporter.
Problem was that the path of out of project-root source-files was not
properly assembled.

Old version:
  QString relFileName = filename;
  relFileName.remove(m_cppSupport->project()->projectDirectory());
New version:
  QString relFileName = m_cppSupport->project()->relativeProjectFile(filename);

This was done several times. It caused an additional "/" to add during
assembling of the final path.

Patch tested with automake projects (kdevelop.kdevelop) and qmake-projects.

Totally unrelated: changed the single occurrence kdDebug(9008) to kdDebug(9007).

Can this be checked and applied before release of 3.4?

HTH,
Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp_problemreporter.cpp.diff.bz2
Type: application/x-bzip2
Size: 813 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20061030/362ed927/attachment.bin>


More information about the KDevelop-devel mailing list