From 163a2afd4f58d53fcb3fe4b5e78daf50688bf6ae Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sat, 16 Mar 2013 16:11:12 -0400 Subject: [PATCH] Use the single parameter version of SetInsets() While I'm at it, I can reduce the LayoutBuilder indent by 1. --- src/apps/diskprobe/OpenWindow.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/apps/diskprobe/OpenWindow.cpp b/src/apps/diskprobe/OpenWindow.cpp index 8b56c525b1..78a1a2c8dc 100644 --- a/src/apps/diskprobe/OpenWindow.cpp +++ b/src/apps/diskprobe/OpenWindow.cpp @@ -58,18 +58,15 @@ OpenWindow::OpenWindow() SetLayout(new BGroupLayout(B_HORIZONTAL)); - AddChild(BLayoutBuilder::Group<>() - .AddGroup(B_VERTICAL) - .Add(field) - .AddGroup(B_HORIZONTAL) - .Add(cancelButton) - .Add(probeFileButton) - .AddGlue() - .Add(probeDeviceButton) - .End() - .SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING, - B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING) + AddChild(BLayoutBuilder::Group<>(B_VERTICAL, B_USE_SMALL_SPACING) + .Add(field) + .AddGroup(B_HORIZONTAL) + .Add(cancelButton) + .Add(probeFileButton) + .AddGlue() + .Add(probeDeviceButton) .End() + .SetInsets(B_USE_DEFAULT_SPACING) ); CenterOnScreen();