Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Outline move bug when no linefeed in end of file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TorbenKoch
Junior Member

20 Posts

Posted - May 16 2007 :  09:59:41 AM  Show Profile  Reply with Quote
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.

rhummer
Tomato Guru

USA
527 Posts

Posted - May 16 2007 :  11:02:44 AM  Show Profile  Reply with Quote
I see the same issue too, using VAX 1555.

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 17 2007 :  1:24:50 PM  Show Profile  Reply with Quote
case=6209

This should be fixed in the next build.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 31 2007 :  12:11:11 AM  Show Profile  Reply with Quote
fixed in build 1557

Edited by - support on May 31 2007 12:46:15 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000