Ticket #15091 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

Return bool from wxFileName AppendDir and InsertDir

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

Description

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

Attachments

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

Change History

Changed 3 months ago by troelsk

bool

Changed 3 months ago by troelsk

clear() instead of assignment

Changed 3 months ago by VZ

  • status changed from new to closed
  • resolution set to fixed

(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.

Changed 3 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.