Use filesystem::path instead of manual string tinkering
authorPieter Wuille <pieter.wuille@gmail.com>
Mon, 9 Apr 2012 21:50:56 +0000 (23:50 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Wed, 11 Apr 2012 20:30:23 +0000 (22:30 +0200)
commitee12c3d60c4bb7b25e06709e92344d2d8b2c581e
tree1928de3b16dfd343ce00c0f79b2fb2dd70a914ee
parentbcaa5f1c0410b7c09405cc1d8515b4d973d13d1f
Use filesystem::path instead of manual string tinkering

Where possible, use boost::filesystem::path instead of std::string or
char* for filenames. This avoids a lot of manual string tinkering, in
favor of path::operator/.

GetDataDir is also reworked significantly, it now only keeps two cached
directory names (the network-specific data dir, and the root data dir),
which are decided through a parameter instead of pre-initialized global
variables.

Finally, remove the "upgrade from 0.1.5" case where a debug.log in the
current directory has to be removed.
src/bitcoinrpc.cpp
src/db.cpp
src/init.cpp
src/main.cpp
src/util.cpp
src/util.h