mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #642
- Fixed bug #642, so that the default 'data.location=~/.task' preserves the '~', leading to more portable .taskrc files (thanks to alparo).
This commit is contained in:
parent
b6c28ecb7a
commit
aca76da3e5
7 changed files with 20 additions and 20 deletions
11
src/Path.cpp
11
src/Path.cpp
|
@ -53,12 +53,16 @@ Path::Path ()
|
|||
Path::Path (const Path& other)
|
||||
{
|
||||
if (this != &other)
|
||||
_data = other._data;
|
||||
{
|
||||
_original = other._original;
|
||||
_data = other._data;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Path::Path (const std::string& in)
|
||||
{
|
||||
_original = in;
|
||||
_data = expand (in);
|
||||
}
|
||||
|
||||
|
@ -71,7 +75,10 @@ Path::~Path ()
|
|||
Path& Path::operator= (const Path& other)
|
||||
{
|
||||
if (this != &other)
|
||||
this->_data = other._data;
|
||||
{
|
||||
this->_original = other._original;
|
||||
this->_data = other._data;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue