Some coding style cleanup.
This commit is contained in:
@@ -78,9 +78,9 @@ ColorNode::ColorNode( const QString& key )
|
||||
///
|
||||
bool ColorNode::operator==( const ColorNode& cn )
|
||||
{
|
||||
return ( (mIsField == cn.mIsField) &&
|
||||
(mColor == cn.mColor) &&
|
||||
(mKey == cn.mKey) );
|
||||
return (mIsField == cn.mIsField) &&
|
||||
(mColor == cn.mColor) &&
|
||||
(mKey == cn.mKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,9 +89,9 @@ bool ColorNode::operator==( const ColorNode& cn )
|
||||
///
|
||||
bool ColorNode::operator!=( const ColorNode& cn )
|
||||
{
|
||||
return ( (mIsField != cn.mIsField) ||
|
||||
(mColor != cn.mColor) ||
|
||||
(mKey != cn.mKey) );
|
||||
return (mIsField != cn.mIsField) ||
|
||||
(mColor != cn.mColor) ||
|
||||
(mKey != cn.mKey);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ LabelEditor::zoomToFit()
|
||||
bool
|
||||
LabelEditor::isZoomMax() const
|
||||
{
|
||||
return ( mZoom >= zoomLevels[0] );
|
||||
return mZoom >= zoomLevels[0];
|
||||
}
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ LabelEditor::isZoomMax() const
|
||||
bool
|
||||
LabelEditor::isZoomMin() const
|
||||
{
|
||||
return ( mZoom <= zoomLevels[nZoomLevels-1] );
|
||||
return mZoom <= zoomLevels[nZoomLevels-1];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -558,7 +558,7 @@ bool LabelModel::isSelectionAtomic()
|
||||
}
|
||||
}
|
||||
|
||||
return (nSelected == 1);
|
||||
return nSelected == 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ TextNode::TextNode( bool isField, const QString &data )
|
||||
///
|
||||
bool TextNode::operator==( const TextNode& other )
|
||||
{
|
||||
return ( (mIsField == other.mIsField) &&
|
||||
(mData == other.mData) );
|
||||
return (mIsField == other.mIsField) &&
|
||||
(mData == other.mData);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ bool TextNode::operator==( const TextNode& other )
|
||||
///
|
||||
bool TextNode::operator!=( const TextNode& other )
|
||||
{
|
||||
return ( (mIsField != other.mIsField) ||
|
||||
(mData != other.mData) );
|
||||
return (mIsField != other.mIsField) ||
|
||||
(mData != other.mData);
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void TextNode::setData( const QString& data )
|
||||
{
|
||||
mData = data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
///
|
||||
/// Get text, expand if necessary
|
||||
@@ -134,7 +134,7 @@ bool TextNode::isEmptyField( merge::Record* record ) const
|
||||
{
|
||||
if ( record->contains( mData ) )
|
||||
{
|
||||
return ( (*record)[mData].isEmpty() );
|
||||
return (*record)[mData].isEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user