Author Topic: Delete file function  (Read 4959 times)

sethjackson

  • Guest
Delete file function
« on: May 11, 2006, 09:02:49 pm »
Hi all. I was browsing the feature requests at BerliOS, and I came across one where someone requested a Delete file feature for C::B.

After thinking about this for awhile I'm going to have to agree with mandrav. This is a bad idea in general, and shouldn't be added to C::B. So I'm removing the code from this post. ;)
« Last Edit: May 17, 2006, 05:05:27 pm by sethjackson »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Delete file function
« Reply #1 on: May 11, 2006, 09:22:32 pm »
I 'm 100% against giving such abilities to any C::B class at the filesystem level.
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: Delete file function
« Reply #2 on: May 11, 2006, 09:24:26 pm »
I 'm 100% against giving such abilities to any C::B class at the filesystem level.

Well that settles that then......

Offline tiger683

  • Multiple posting newcomer
  • *
  • Posts: 20
  • o_0
Re: Delete file function
« Reply #3 on: May 11, 2006, 09:26:23 pm »
For the sake of code itself:
you check
Code
if (!prj)
        return;
after having already used the pointer.

Besides, I think I'll use this afterall since it's usefulness defeats the risks in my case ;)

Thanks,

Rafael

Where I work :P