Files
haiku-beta6/src/apps/installer/PartitionMenuItem.cpp
T
Jérôme Duval 9f3d8cb64f code style update
now mount the target partition before copying


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-12 13:37:02 +00:00

27 lines
511 B
C++

/*
* Copyright 2005, Jérôme DUVAL. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <View.h>
#include <stdlib.h>
#include <string.h>
#include "PartitionMenuItem.h"
PartitionMenuItem::PartitionMenuItem(const char *name, const char *label, const char *menuLabel,
BMessage *msg, partition_id id)
: BMenuItem(label, msg)
{
fID = id;
fMenuLabel = strdup(menuLabel);
fName = strdup(name);
}
PartitionMenuItem::~PartitionMenuItem()
{
free(fMenuLabel);
free(fName);
}