mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
- Changes to enable a clean build under Fedora 8.
This commit is contained in:
parent
e392b8a95e
commit
5e6b256df5
7 changed files with 48 additions and 46 deletions
|
@ -76,8 +76,8 @@ void extractParagraphs (const std::string& input, std::vector<std::string>& outp
|
|||
std::string copy = input;
|
||||
while (1)
|
||||
{
|
||||
unsigned int so = copy.find ("<p>");
|
||||
unsigned int eo = copy.find ("</p>");
|
||||
size_t so = copy.find ("<p>");
|
||||
size_t eo = copy.find ("</p>");
|
||||
|
||||
if (so == std::string::npos && eo == std::string::npos)
|
||||
break;
|
||||
|
@ -126,7 +126,7 @@ void unquoteText (std::string& text)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void extractLine (std::string& text, std::string& line, int length)
|
||||
{
|
||||
unsigned int eol = text.find ("\n");
|
||||
size_t eol = text.find ("\n");
|
||||
|
||||
// Special case: found \n in first length characters.
|
||||
if (eol != std::string::npos && eol < (unsigned) length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue