From 95b847d3f97ea0bfa0ab58ba93a27ee6d02c243a Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Fri, 1 Oct 2004 19:03:29 +0000 Subject: [PATCH] cosmetics... --- src/Operation.cc | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/Operation.cc b/src/Operation.cc index 229d469b..5a79c46d 100644 --- a/src/Operation.cc +++ b/src/Operation.cc @@ -115,36 +115,36 @@ std::vector Operation::Apply_Operation_To_Visual( std::vectorDelete_Partition( partition_original ) ; - if ( ! result ) - Show_Error( String::ucompose( _("Error while deleting %1"), partition_original.partition ) ) ; + case DELETE : result = device ->Delete_Partition( partition_original ) ; + if ( ! result ) + Show_Error( String::ucompose( _("Error while deleting %1"), partition_original.partition ) ) ; - break; - case CREATE : result = device ->Create_Partition_With_Filesystem( partition_new, timer ) ; - if ( ! result ) - Show_Error( String::ucompose( _("Error while creating %1"), partition_new.partition ) ); - - break; - case RESIZE_MOVE : result = device ->Move_Resize_Partition( partition_original, partition_new, timer ) ; - if ( ! result ) - Show_Error( String::ucompose( _("Error while resizing/moving %1"), partition_new.partition ) ) ; - - break; - case CONVERT : result = device ->Set_Partition_Filesystem( partition_new, timer ) ; - if ( ! result ) - Show_Error( String::ucompose( _("Error while converting filesystem of %1"), partition_new.partition ) ) ; - - break; - case COPY : result = device ->Copy_Partition( source_device, partition_new, timer ) ; - if ( ! result ) - Show_Error( String::ucompose( _("Error while copying %1"), partition_new .partition ) ) ; - - break; + break; + case CREATE : result = device ->Create_Partition_With_Filesystem( partition_new, timer ) ; + if ( ! result ) + Show_Error( String::ucompose( _("Error while creating %1"), partition_new.partition ) ); + + break; + case RESIZE_MOVE: result = device ->Move_Resize_Partition( partition_original, partition_new, timer ) ; + if ( ! result ) + Show_Error( String::ucompose( _("Error while resizing/moving %1"), partition_new.partition ) ) ; + + break; + case CONVERT : result = device ->Set_Partition_Filesystem( partition_new, timer ) ; + if ( ! result ) + Show_Error( String::ucompose( _("Error while converting filesystem of %1"), partition_new.partition ) ) ; + + break; + case COPY : result = device ->Copy_Partition( source_device, partition_new, timer ) ; + if ( ! result ) + Show_Error( String::ucompose( _("Error while copying %1"), partition_new .partition ) ) ; + + break; } }