mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
- Fixed bug on Ubuntu whereby it wants std::string::size_type rather than unsigned int.
This commit is contained in:
parent
2b646b3fa0
commit
60b7d15a1d
1 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ int convertDuration (std::string& input)
|
||||||
std::string expandPath (const std::string& in)
|
std::string expandPath (const std::string& in)
|
||||||
{
|
{
|
||||||
std::string copy = in;
|
std::string copy = in;
|
||||||
unsigned int tilde;
|
std::string::size_type tilde;
|
||||||
|
|
||||||
if ((tilde = copy.find ("~/")) != std::string::npos)
|
if ((tilde = copy.find ("~/")) != std::string::npos)
|
||||||
{
|
{
|
||||||
|
@ -317,7 +317,7 @@ std::string expandPath (const std::string& in)
|
||||||
}
|
}
|
||||||
else if ((tilde = copy.find ("~")) != std::string::npos)
|
else if ((tilde = copy.find ("~")) != std::string::npos)
|
||||||
{
|
{
|
||||||
unsigned int slash;
|
std::string::size_type slash;
|
||||||
if ((slash = copy.find ("/", tilde)) != std::string::npos)
|
if ((slash = copy.find ("/", tilde)) != std::string::npos)
|
||||||
{
|
{
|
||||||
std::string name = copy.substr (tilde + 1, slash - tilde - 1);
|
std::string name = copy.substr (tilde + 1, slash - tilde - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue