Fixed some more compiler warnings

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@192 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-01-31 19:43:27 +00:00
parent 51546ca2d8
commit 2291fe4405
16 changed files with 3467 additions and 4134 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ void SymbolPartMatrixAction::transform(const Vector2D& mx, const Vector2D& my) {
SymbolPartRotateAction::SymbolPartRotateAction(const set<SymbolPartP>& parts, const Vector2D& center)
: SymbolPartMatrixAction(parts, center)
, constrain(false)
, angle(0)
, constrain(false)
{}
String SymbolPartRotateAction::getName(bool to_undo) const {
@@ -154,8 +154,8 @@ void SymbolPartShearAction::shearBy(const Vector2D& shear) {
SymbolPartScaleAction::SymbolPartScaleAction(const set<SymbolPartP>& parts, int scaleX, int scaleY)
: parts(parts)
, constrain(false)
, scaleX(scaleX), scaleY(scaleY)
, constrain(false)
{
// Find min and max coordinates
oldMin = Vector2D::infinity();
+5 -5
View File
@@ -76,9 +76,9 @@ void ControlPointMoveAction::move (const Vector2D& deltaDelta) {
HandleMoveAction::HandleMoveAction(const SelectedHandle& handle)
: handle(handle)
, constrain(false)
, old_handle(handle.getHandle())
, old_other (handle.getOther())
, constrain(false)
{}
String HandleMoveAction::getName(bool to_undo) const {
@@ -196,11 +196,11 @@ void CurveDragAction::move(const Vector2D& delta, double t) {
// ----------------------------------------------------------------------------- : Add control point
ControlPointAddAction::ControlPointAddAction(const SymbolPartP& part, UInt insert_after, double t)
: point1(part->getPoint(insert_after))
, point2(part->getPoint(insert_after + 1))
, part(part)
, insert_after(insert_after)
: part(part)
, new_point(new ControlPoint())
, insert_after(insert_after)
, point1(part->getPoint(insert_after))
, point2(part->getPoint(insert_after + 1))
{
// calculate new point
if (point1.other.segment_after == SEGMENT_CURVE) {
+4 -2
View File
@@ -19,7 +19,7 @@
// ----------------------------------------------------------------------------- : ValueAction
String ValueAction::getName(bool to_undo) const {
return String::Format(_ACTION_("change"), valueP->fieldP->name);
return format_string(_ACTION_("change"), valueP->fieldP->name);
}
// ----------------------------------------------------------------------------- : Simple
@@ -61,8 +61,10 @@ ValueAction* value_action(const SymbolValueP& value, const FileName&
// ----------------------------------------------------------------------------- : Text
TextValueAction::TextValueAction(const TextValueP& value, size_t start, size_t end, size_t new_end, const Defaultable<String>& new_value, const String& name)
: ValueAction(value), new_value(new_value), name(name)
: ValueAction(value)
, selection_start(start), selection_end(end), new_selection_end(new_end)
, new_value(new_value)
, name(name)
{}
String TextValueAction::getName(bool to_undo) const { return name; }
+3 -3
View File
@@ -26,8 +26,8 @@ Field::Field()
, identifying (false)
, card_list_column (100)
, card_list_width (100)
, card_list_allow (true)
, card_list_visible(false)
, card_list_allow (true)
, card_list_align (ALIGN_LEFT)
, tab_index (0)
{}
@@ -79,8 +79,8 @@ shared_ptr<Field> read_new<Field>(Reader& reader) {
Style::Style(const FieldP& field)
: fieldP(field)
, z_index(0)
, left(0), width (0)
, top (0), height(0)
, left(0), top(0)
, width(0), height(0)
, visible(true)
{}
+2 -2
View File
@@ -14,8 +14,8 @@ DECLARE_TYPEOF_COLLECTION(ColorField::ChoiceP);
// ----------------------------------------------------------------------------- : ColorField
ColorField::ColorField()
: default_name(_("Default"))
, allow_custom(true)
: allow_custom(true)
, default_name(_("Default"))
{}
IMPLEMENT_FIELD_TYPE(Color)
+1 -1
View File
@@ -52,8 +52,8 @@ StatsCategory::StatsCategory(const StatsDimensionP& dim)
, name (dim->name)
, description (dim->description)
, icon_filename(dim->icon_filename)
, type(GRAPH_TYPE_BAR)
, dimensions(1, dim)
, type(GRAPH_TYPE_BAR)
{}
IMPLEMENT_REFLECTION_ENUM(GraphType) {