@ -164,7 +164,7 @@ bool ConfigurationManager::loadConfig(const boost::filesystem::path& path,
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 )
{
s eenNonWhitespace = false ;
f inishLine = false ;
mS eenNonWhitespace = false ;
mF inishLine = false ;
mNext . push ( character ) ;
}
else if ( character = = ' \n ' )
{
s eenNonWhitespace = false ;
f inishLine = false ;
mS eenNonWhitespace = false ;
mF inishLine = false ;
mNext . push ( character ) ;
}
else if ( f inishLine)
else if ( mF inishLine)
{
mNext . push ( character ) ;
}
else if ( character = = ' # ' )
{
if ( s eenNonWhitespace)
if ( mS eenNonWhitespace)
{
mNext . push ( sEscape ) ;
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
mNext . push ( character ) ;
f inishLine = true ;
mF inishLine = true ;
}
}
else if ( mPrevious = = sEscape )
@ -223,8 +223,8 @@ int escape_hash_filter::get(Source & src)
{
mNext . push ( character ) ;
}
if ( ! s eenNonWhitespace & & ! isspace ( character ) )
s eenNonWhitespace = true ;
if ( ! mS eenNonWhitespace & & ! isspace ( character ) )
mS eenNonWhitespace = true ;
if ( record )
mPrevious = character ;
}