Commit f0d7ce69 authored by Scott Wheeler's avatar Scott Wheeler

A couple of nitpicks: initialize the variables even though we'll just write

over them shortly and use C++ style enum declarations.

svn path=/trunk/kdemultimedia/juk/; revision=359717
parent ad7a317e
......@@ -49,6 +49,8 @@ typedef enum { MoveUp, MoveDown } MovementDirection;
*/
struct Row
{
Row() : widget(0), upButton(0), downButton(0), enableButton(0) {}
QWidget *widget;
QPushButton *upButton, *downButton;
QCheckBox *enableButton;
......
......@@ -20,10 +20,10 @@
// Insert all new tag types before NumTypes, that way NumTypes will always be
// the count of valid tag types.
typedef enum {
enum TagType {
StartTag, Title = StartTag, Artist, Album,
Track, Genre, Year, NumTypes, Unknown
} TagType;
};
/**
* Defines options for a tag type. Used by FileRenamerTagOptions as its
......@@ -34,7 +34,7 @@ typedef enum {
class TagRenamerOptions
{
public:
typedef enum { ForceEmptyInclude, IgnoreEmptyTag, UseReplacementValue } EmptyActions;
enum EmptyActions { ForceEmptyInclude, IgnoreEmptyTag, UseReplacementValue };
TagRenamerOptions();
TagRenamerOptions(TagType category);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment