HomePhabricator

Use filesystem::path instead of manual string tinkering
ee12c3d60c4bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 9 2012, 21:50
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGbcaa5f1c0410: Merge pull request #1083 from laanwj/2012_04_connectionicon
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGINGee12c3d60c4b: Use filesystem::path instead of manual string tinkering (authored by Pieter Wuille <pieter.wuille@gmail.com>).Apr 11 2012, 20:30