From 411461b72a4768a065f3757573d77c411e1313bb Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 7 Apr 2009 15:11:03 +0000 Subject: [PATCH] * removed unused variable * automatic whitespace cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29993 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/interface/TextViewTest.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/tests/kits/interface/TextViewTest.cpp b/src/tests/kits/interface/TextViewTest.cpp index be7c533426..f712f48b1f 100644 --- a/src/tests/kits/interface/TextViewTest.cpp +++ b/src/tests/kits/interface/TextViewTest.cpp @@ -30,15 +30,15 @@ Window::Window() { BRect rect = Bounds().InsetByCopy(20, 20); - BTextView* textView = new BTextView(rect, "text-o-mo", + BTextView* textView = new BTextView(rect, "text-o-mo", rect.OffsetToCopy(0, 0), B_FOLLOW_ALL); - BScrollView* scrollView = new BScrollView("scroll-o-mo", textView, + BScrollView* scrollView = new BScrollView("scroll-o-mo", textView, B_FOLLOW_ALL_SIDES, 0, true, true); AddChild(scrollView); - + printf("starting to prepare content ... [%Ld]\n", system_time()); - + // generate a million lines of content const int32 kLineCount = 1000000; const int32 kLineNoSize = 6; @@ -51,7 +51,6 @@ Window::Window() char* currLine = content.LockBuffer(contentLength); if (currLine) { int32 lineNo = 0; - char buf[10]; for ( ; lineNo < kLineCount; currLine += lineLength) sprintf(currLine, format.String(), kLineNoSize, lineNo++); content.UnlockBuffer(contentLength); @@ -98,7 +97,7 @@ Application::ReadyToRun(void) // #pragma mark - -int +int main(int argc, char **argv) { Application app;