Use wxFileName for path manipulationamule-svn-r10942
commit4e92cc1780971c526a3d3f7c2cf0e0a3f6a7873b
authorupstream svn <svn@amule.org>
Sun, 31 Jul 2016 13:26:16 +0000 (31 13:26 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Mon, 1 Aug 2016 06:52:41 +0000 (1 06:52 +0000)
tree952b5af30c6b7396db15545a4a3046924fbfea97
parente7773f1b34fd1a23839fb9ea5df41942f8ff0cd8
Use wxFileName for path manipulation

There's no need to reinvent the wheel, it knows better how to handle file names
and paths on different platforms. Our implementation was flawed, for example
on MSW: "\foo" + "_1" => "\\foo_1", thus turning a file name in the root directory
of the current drive into a network drive name. Issue revealed by the unittests.
.svn-revision
src/libs/common/Path.cpp