Ensure that wxFileName::GetTempDir() doesn't return trailing slashes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jun 2010 11:46:49 +0000 (11:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jun 2010 11:46:49 +0000 (11:46 +0000)
commit02f35bffeb7e26b6163a027b827692ff4851f3b2
tree17387768ef6d284adab893bd614181a3659af8dc
parent7c2257892c99696cc2f2489b3e51bcbc24597abb
Ensure that wxFileName::GetTempDir() doesn't return trailing slashes.

Sanitize the value returned by GetTempDir() to ensure that it doesn't have any
trailing path separators. This happened at least under OS X where standard
TMPDIR has a trailing slash and was inconsistent with the behaviour under the
other platforms.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/filename.cpp