mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 00:39:49 +00:00
Remove the cause of a warning which upset Travis (but not the thing that made the Travis build fail, as I have no idea why it wouldn't work or how to fix it
This commit is contained in:
parent
1a0642f1db
commit
5121e77a95
@ -164,7 +164,7 @@ bool ConfigurationManager::loadConfig(const boost::filesystem::path& path,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
escape_hash_filter::escape_hash_filter() : mNext()
|
escape_hash_filter::escape_hash_filter() : mNext(), mSeenNonWhitespace(false), mFinishLine(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,23 +186,23 @@ int escape_hash_filter::get(Source & src)
|
|||||||
}
|
}
|
||||||
else if (character == EOF)
|
else if (character == EOF)
|
||||||
{
|
{
|
||||||
seenNonWhitespace = false;
|
mSeenNonWhitespace = false;
|
||||||
finishLine = false;
|
mFinishLine = false;
|
||||||
mNext.push(character);
|
mNext.push(character);
|
||||||
}
|
}
|
||||||
else if (character == '\n')
|
else if (character == '\n')
|
||||||
{
|
{
|
||||||
seenNonWhitespace = false;
|
mSeenNonWhitespace = false;
|
||||||
finishLine = false;
|
mFinishLine = false;
|
||||||
mNext.push(character);
|
mNext.push(character);
|
||||||
}
|
}
|
||||||
else if (finishLine)
|
else if (mFinishLine)
|
||||||
{
|
{
|
||||||
mNext.push(character);
|
mNext.push(character);
|
||||||
}
|
}
|
||||||
else if (character == '#')
|
else if (character == '#')
|
||||||
{
|
{
|
||||||
if (seenNonWhitespace)
|
if (mSeenNonWhitespace)
|
||||||
{
|
{
|
||||||
mNext.push(sEscape);
|
mNext.push(sEscape);
|
||||||
mNext.push(sHashIdentifier);
|
mNext.push(sHashIdentifier);
|
||||||
@ -211,7 +211,7 @@ int escape_hash_filter::get(Source & src)
|
|||||||
{
|
{
|
||||||
//it's fine being interpreted by Boost as a comment, and so is anything afterwards
|
//it's fine being interpreted by Boost as a comment, and so is anything afterwards
|
||||||
mNext.push(character);
|
mNext.push(character);
|
||||||
finishLine = true;
|
mFinishLine = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mPrevious == sEscape)
|
else if (mPrevious == sEscape)
|
||||||
@ -223,8 +223,8 @@ int escape_hash_filter::get(Source & src)
|
|||||||
{
|
{
|
||||||
mNext.push(character);
|
mNext.push(character);
|
||||||
}
|
}
|
||||||
if (!seenNonWhitespace && !isspace(character))
|
if (!mSeenNonWhitespace && !isspace(character))
|
||||||
seenNonWhitespace = true;
|
mSeenNonWhitespace = true;
|
||||||
if (record)
|
if (record)
|
||||||
mPrevious = character;
|
mPrevious = character;
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,8 @@ struct escape_hash_filter : public boost::iostreams::input_filter
|
|||||||
std::queue<int> mNext;
|
std::queue<int> mNext;
|
||||||
int mPrevious;
|
int mPrevious;
|
||||||
|
|
||||||
bool seenNonWhitespace = false;
|
bool mSeenNonWhitespace;
|
||||||
bool finishLine = false;
|
bool mFinishLine;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user