Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Fix macro warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pasnox committed Jun 16, 2013
1 parent 1b28cb5 commit 5bf7ea4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions src/syntax/Comment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class Syntax::CommentData : public QSharedData
QString end;
QString region;
QString position;

CommentData()
: QSharedData()
{
}

CommentData( const Syntax::CommentData& other )
: QSharedData( other ),
QE_OTHER_INIT( name ),
Expand All @@ -38,19 +38,19 @@ class Syntax::CommentData : public QSharedData
QE_OTHER_INIT( position )
{
}

virtual ~CommentData() {
}
};

QE_IMPL_SHARED_CLASS( Comment, Syntax );
QE_IMPL_SHARED_CLASS( Comment, Syntax )

Syntax::Comment::~Comment()
{
}

QE_IMPL_MEMBER( QString, name, Comment, Syntax );
QE_IMPL_MEMBER( QString, start, Comment, Syntax );
QE_IMPL_MEMBER( QString, end, Comment, Syntax );
QE_IMPL_MEMBER( QString, region, Comment, Syntax );
QE_IMPL_MEMBER( QString, position, Comment, Syntax );
QE_IMPL_MEMBER( QString, name, Comment, Syntax )
QE_IMPL_MEMBER( QString, start, Comment, Syntax )
QE_IMPL_MEMBER( QString, end, Comment, Syntax )
QE_IMPL_MEMBER( QString, region, Comment, Syntax )
QE_IMPL_MEMBER( QString, position, Comment, Syntax )
10 changes: 5 additions & 5 deletions src/syntax/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ class Syntax::ConfigurationData : public QSharedData
{
public:
QString encodingReplacementPolicy;

ConfigurationData()
: QSharedData()
{
}

ConfigurationData( const Syntax::ConfigurationData& other )
: QSharedData( other ),
QE_OTHER_INIT( encodingReplacementPolicy )
{
}

virtual ~ConfigurationData() {
}
};

QE_IMPL_SHARED_CLASS( Configuration, Syntax );
QE_IMPL_SHARED_CLASS( Configuration, Syntax )

Syntax::Configuration::~Configuration()
{
}

QE_IMPL_MEMBER( QString, encodingReplacementPolicy, Configuration, Syntax );
QE_IMPL_MEMBER( QString, encodingReplacementPolicy, Configuration, Syntax )
26 changes: 13 additions & 13 deletions src/syntax/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Syntax::ContextData : public QSharedData
bool dynamic;
bool noIndentationBasedFolding;
Syntax::Rule::List rules;

ContextData()
: QSharedData(),
attribute( "normal" ),
Expand All @@ -39,7 +39,7 @@ class Syntax::ContextData : public QSharedData
noIndentationBasedFolding( false )
{
}

ContextData( const Syntax::ContextData& other )
: QSharedData( other ),
QE_OTHER_INIT( name ),
Expand All @@ -53,26 +53,26 @@ class Syntax::ContextData : public QSharedData
QE_OTHER_INIT( rules )
{
}

virtual ~ContextData() {
}
};

QE_IMPL_SHARED_CLASS( Context, Syntax );
QE_IMPL_SHARED_CLASS( Context, Syntax )

Syntax::Context::~Context()
{
}

QE_IMPL_MEMBER( QString, name, Context, Syntax );
QE_IMPL_MEMBER( QString, attribute, Context, Syntax );
QE_IMPL_MEMBER( QString, lineBeginContext, Context, Syntax );
QE_IMPL_MEMBER( QString, lineEndContext, Context, Syntax );
QE_IMPL_MEMBER( bool, fallThrough, Context, Syntax );
QE_IMPL_MEMBER( QString, fallThroughContext, Context, Syntax );
QE_IMPL_MEMBER( bool, dynamic, Context, Syntax );
QE_IMPL_MEMBER( bool, noIndentationBasedFolding, Context, Syntax );
QE_IMPL_MEMBER( Syntax::Rule::List, rules, Context, Syntax );
QE_IMPL_MEMBER( QString, name, Context, Syntax )
QE_IMPL_MEMBER( QString, attribute, Context, Syntax )
QE_IMPL_MEMBER( QString, lineBeginContext, Context, Syntax )
QE_IMPL_MEMBER( QString, lineEndContext, Context, Syntax )
QE_IMPL_MEMBER( bool, fallThrough, Context, Syntax )
QE_IMPL_MEMBER( QString, fallThroughContext, Context, Syntax )
QE_IMPL_MEMBER( bool, dynamic, Context, Syntax )
QE_IMPL_MEMBER( bool, noIndentationBasedFolding, Context, Syntax )
QE_IMPL_MEMBER( Syntax::Rule::List, rules, Context, Syntax )

bool Syntax::Context::isNull() const
{
Expand Down

0 comments on commit 5bf7ea4

Please sign in to comment.