When you have a file with a linefeed after the last } like this:
uint32 Settings::getUInt32( const StringRef& sectionName, const StringRef& keyName, uint32 defaultValue /*= 0*/ )
{
return impl->accessor->getUInt32(sectionName, keyName, defaultValue);
}
void Settings::setUInt32( const StringRef& sectionName, const StringRef& keyName, uint32 value )
{
impl->accessor->setUInt32(sectionName, keyName, value);
}
Remember: no linefeed after the last }
If you then use the outline view to move the last method in front of the first, you get this result:
void Settings::setUInt32( const StringRef& sectionName, const StringRef& keyName, uint32 value )
{
impl->accessor->setUInt32(sectionName, keyName, value);
uint32 Settings::getUInt32( const StringRef& sectionName, const StringRef& keyName, uint32 defaultValue /*= 0*/ )
{
return impl->accessor->getUInt32(sectionName, keyName, defaultValue);
}
}
And again there is no linefeed after the last }.
If you put in a linefeed there is no problem.