[Bug 68850] New: error during cpmpilation parts/doctreeview/doctreeviewwidget.cpp
Damir Islamov
damir at land5.nsu.ru
Sun Nov 23 11:30:09 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=68850
Summary: error during cpmpilation
parts/doctreeview/doctreeviewwidget.cpp
Product: kdevelop
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-devel at kdevelop.org
ReportedBy: damir at land5.nsu.ru
Version: CVS20031123 (using KDE KDE 3.1.4)
Installed from: Debian testing/unstable Packages
Compiler: gcc-3.3.2
OS: Linux
It's REOPEN of # 64103
automake-1.7.9
autoconf-2.58
Error output:
doctreeviewwidget.cpp: In member function `virtual void
DocTreeDocbaseFolder::setOpen(bool)':
doctreeviewwidget.cpp:767: error: cannot convert `QString' to `char*' in
initialization
The wrong code is
if ( (f = fopen(d.filePath(*it), "r")) != 0)
To my mind the better solution is
-- if ( (f = fopen(d.filePath(*it), "r")) != 0)
++ QString temp=d.filePath(*it);
++ if ( (f = fopen(temp.ascii(), "r")) != 0)
At last it works!
More information about the KDevelop-devel
mailing list