Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#15091 closed enhancement (fixed)

Return bool from wxFileName AppendDir and InsertDir

Reported by: troelsk Owned by:
Priority: normal Milestone:
Component: base Version: stable-latest
Keywords: wxFileName Cc:
Blocked By: Blocking:
Patch: yes

Description

It is useful to know what happened, so you can react on it.

Attachments (2)

bool.patch download (2.6 KB) - added by troelsk 20 months ago.
bool
clear.patch download (1.8 KB) - added by troelsk 20 months ago.
clear() instead of assignment

Download all attachments as: .zip

Change History (4)

Changed 20 months ago by troelsk

bool

Changed 20 months ago by troelsk

clear() instead of assignment

comment:1 Changed 20 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73631]) Return false from wxFileName::AppendDir() and InsertDir() on failure.

Give the caller a way to know whether the directory was valid or not.

Closes #15091.

comment:2 Changed 20 months ago by VZ

(In [73632]) No real changes, just use wxString::clear() instead of assignment.

Consistently use clear() everywhere instead of assigning wxEmptyString in some
places and wxT("") in some others to a string in order to clear it.

See #15091.

Note: See TracTickets for help on using tickets.