Bug 68850 - error during cpmpilation parts/doctreeview/doctreeviewwidget.cpp
Summary: error during cpmpilation parts/doctreeview/doctreeviewwidget.cpp
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 11:29 UTC by Damir Islamov
Modified: 2003-11-23 14:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damir Islamov 2003-11-23 11:29:37 UTC
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!
Comment 1 Damir Islamov 2003-11-23 11:30:22 UTC
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!
Comment 2 Damir Islamov 2003-11-23 11:41:31 UTC
-- if ( (f = fopen(d.filePath(*it), "r")) != 0)
++ QString temp=d.filePath(*it);
++ if ( (f = fopen(temp.ascii(), "r")) != 0)
Comment 3 Damir Islamov 2003-11-23 11:42:22 UTC
QString temp=d.filePath(*it);
if ( (f = fopen(temp.ascii(), "r")) != 0)
Comment 4 Amilcar do Carmo Lucas 2003-11-23 14:13:43 UTC
Like was said in BR64103 :

This in not a bug! 
This is a compilation error. 
 
Please: 
 -Report bugs to the bug database (here) 
 -Report compilation erros to the mailing list (not here) 

This information was on that bug report AND in on our website in the page that explains you how to report and see bugs:
http://www.kdevelop.org/index.html?filename=bugs.html

Thanks for reporting this, but please use the mailing list instead