Skip to content

Commit

Permalink
automatic indentation update (r12177-r12600)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12601 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 23, 2009
1 parent e5cf709 commit b2c10ff
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/analysis/interpolation/Vector3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

class ANALYSIS_EXPORT Vector3D
/**
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values. In fact, the class is the same as Point3D. The name 'vector' makes it easier to understand the programs.
*/
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values. In fact, the class is the same as Point3D. The name 'vector' makes it easier to understand the programs.
*/

{
protected:
Expand Down
6 changes: 3 additions & 3 deletions src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,10 @@ void QgsComposer::on_mActionRefreshView_triggered()

//refresh preview of all composer maps
QMap<QgsComposerItem*, QWidget*>::iterator it = mItemWidgetMap.begin();
for(; it != mItemWidgetMap.end(); ++it)
for ( ; it != mItemWidgetMap.end(); ++it )
{
QgsComposerMap* map = dynamic_cast<QgsComposerMap*>(it.key());
if(map && !map->isDrawing())
QgsComposerMap* map = dynamic_cast<QgsComposerMap*>( it.key() );
if ( map && !map->isDrawing() )
{
map->cache();
map->update();
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposerpicturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ bool QgsComposerPictureWidget::testSvgFile( const QString& filename ) const
{
//QSvgRenderer crashes with some (non-svg) xml documents.
//So at least we try to sort out the ones with different suffixes
if(!filename.endsWith(".svg"))
if ( !filename.endsWith( ".svg" ) )
{
return false;
}
Expand Down
10 changes: 5 additions & 5 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int _fmode = _O_BINARY;
// Recommended method for doing this with msvc is with a call to _set_fmode
// which is the first thing we do in main().
// Similarly, with MinGW set _fmode in main().
#endif //_MSC_VER
#endif //_MSC_VER
#else
#include <getopt.h>
#endif
Expand Down Expand Up @@ -236,13 +236,13 @@ void myMessageOutput( QtMsgType type, const char *msg )

int main( int argc, char *argv[] )
{
#ifdef WIN32 // Windows
#ifdef WIN32 // Windows
#ifdef _MSC_VER
_set_fmode( _O_BINARY );
#else //MinGW
#else //MinGW
_fmode = _O_BINARY;
#endif // _MSC_VER
#endif // WIN32
#endif // _MSC_VER
#endif // WIN32

#ifndef _MSC_VER
// Set up the custom qWarning/qDebug custom handler
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgisappinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ QgisAppInterface::QgisAppInterface( QgisApp * _qgis )
this, SIGNAL( currentLayerChanged( QgsMapLayer * ) ) );
connect( qgis, SIGNAL( currentThemeChanged( QString ) ),
this, SIGNAL( currentThemeChanged( QString ) ) );
connect( qgis, SIGNAL(composerAdded(QgsComposerView*)), this, SIGNAL(composerAdded( QgsComposerView* )));
connect( qgis, SIGNAL(composerWillBeRemoved(QgsComposerView*)), this, SIGNAL(composerWillBeRemoved(QgsComposerView*)));
connect( qgis, SIGNAL( composerAdded( QgsComposerView* ) ), this, SIGNAL( composerAdded( QgsComposerView* ) ) );
connect( qgis, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ), this, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ) );
}

QgisAppInterface::~QgisAppInterface()
Expand Down
4 changes: 2 additions & 2 deletions src/core/raster/qgsrastertransparency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int QgsRasterTransparency::alphaValue( double theValue, int theGlobalTransparenc

//Search through he transparency list looking for a match
bool myTransparentPixelFound = false;
TransparentSingleValuePixel myTransparentPixel = {0,100};
TransparentSingleValuePixel myTransparentPixel = {0, 100};
for ( int myListRunner = 0; myListRunner < mTransparentSingleValuePixelList.count(); myListRunner++ )
{
myTransparentPixel = mTransparentSingleValuePixelList[myListRunner];
Expand Down Expand Up @@ -143,7 +143,7 @@ int QgsRasterTransparency::alphaValue( double theRedValue, double theGreenValue,

//Search through he transparency list looking for a match
bool myTransparentPixelFound = false;
TransparentThreeValuePixel myTransparentPixel = {0,0,0,100};
TransparentThreeValuePixel myTransparentPixel = {0, 0, 0, 100};
for ( int myListRunner = 0; myListRunner < mTransparentThreeValuePixelList.count(); myListRunner++ )
{
myTransparentPixel = mTransparentThreeValuePixelList[myListRunner];
Expand Down
4 changes: 2 additions & 2 deletions src/core/renderer/qgsuniquevaluerenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class CORE_EXPORT QgsUniqueValueRenderer: public QgsRenderer
int classificationField() const;
/**Return symbology items*/
const QList<QgsSymbol*> symbols() const { return mSymbols.values(); }
/**Return the classification map
@note added in 1.4 */
/**Return the classification map
@note added in 1.4 */
const QMap<QString, QgsSymbol*> symbolMap() const { return mSymbols; }
QgsRenderer* clone() const;
protected:
Expand Down
2 changes: 1 addition & 1 deletion src/helpviewer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ int main( int argc, char ** argv )
myTranslationCode = QLocale::system().name();

QSettings settings;
if( settings.value( "locale/overrideFlag", false ).toBool() )
if ( settings.value( "locale/overrideFlag", false ).toBool() )
{
myTranslationCode = settings.value( "locale/userLocale", "en_US" ).toString();
}
Expand Down
6 changes: 3 additions & 3 deletions src/helpviewer/qgshelpviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ void QgsHelpViewer::loadContext( const QString &contextId )
QString lang = QLocale::system().name();

QSettings settings;
if( settings.value( "locale/overrideFlag", false ).toBool() )
if ( settings.value( "locale/overrideFlag", false ).toBool() )
{
QLocale l( settings.value( "locale/userLocale", "en_US" ).toString() );
lang = l.name();
QLocale l( settings.value( "locale/userLocale", "en_US" ).toString() );
lang = l.name();
}
/*
* If the language isn't set on the system, assume en_US,
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/gps_importer/qgsbabelformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ QStringList QgsBabelCommand::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( QString("\"%1\"").arg( input ) );
copy.append( QString( "\"%1\"" ).arg( input ) );
else if ( *iter == "%out" )
copy.append( QString("\"%1\"").arg( output ) );
copy.append( QString( "\"%1\"" ).arg( output ) );
else
copy.append( *iter );
}
Expand All @@ -171,9 +171,9 @@ QStringList QgsBabelCommand::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( QString("\"%1\"").arg( input ) );
copy.append( QString( "\"%1\"" ).arg( input ) );
else if ( *iter == "%out" )
copy.append( QString("\"%1\"").arg( output ) );
copy.append( QString( "\"%1\"" ).arg( output ) );
else
copy.append( *iter );
}
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/gps_importer/qgsgpsdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ QStringList QgsGPSDevice::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( QString( "\"%1\"").arg( in ) );
copy.append( QString( "\"%1\"" ).arg( in ) );
else if ( *iter == "%out" )
copy.append( QString( "\"%1\"").arg( out ) );
copy.append( QString( "\"%1\"" ).arg( out ) );
else
copy.append( *iter );
}
Expand Down Expand Up @@ -90,9 +90,9 @@ QStringList QgsGPSDevice::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( QString("\"%1\"").arg( in ) );
copy.append( QString( "\"%1\"" ).arg( in ) );
else if ( *iter == "%out" )
copy.append( QString("\"%1\"").arg( out ) );
copy.append( QString( "\"%1\"" ).arg( out ) );
else
copy.append( *iter );
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/gps_importer/qgsgpsplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ void QgsGPSPlugin::convertGPSFile( QString inputFileName,

// try to start the gpsbabel process
QStringList babelArgs;
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << QString("\"%1\"").arg( inputFileName )
<< convertStrings << "-o" << "gpx" << "-F" << QString("\"%1\"").arg( outputFileName );
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << QString( "\"%1\"" ).arg( inputFileName )
<< convertStrings << "-o" << "gpx" << "-F" << QString( "\"%1\"" ).arg( outputFileName );
QgsDebugMsg( QString( "Conversion command: " ) + babelArgs.join( "|" ) );

QProcess babelProcess;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/gpx/qgsgpxprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ bool QgsGPXProvider::nextFeature( QgsFeature& feature )
const QgsTrack* trk;
trk = &( *mTrkIter );

QgsDebugMsg( QString("GPX feature track segments: %1").arg( trk->segments.size() ) );
QgsDebugMsg( QString( "GPX feature track segments: %1" ).arg( trk->segments.size() ) );
if ( trk->segments.size() == 0 )
continue;

Expand Down
4 changes: 2 additions & 2 deletions tests/src/core/testqgsmaprenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ void TestQgsMapRenderer::initTestCase()
QGis::WKBPolygon,
&mCRS );
double myInterval = 0.5;
for ( double i = -180.0;i <= 180.0;i += myInterval )
for ( double i = -180.0; i <= 180.0; i += myInterval )
{
for ( double j = -90.0;j <= 90.0;j += myInterval )
for ( double j = -90.0; j <= 90.0; j += myInterval )
{
//
// Create a polygon feature
Expand Down
8 changes: 4 additions & 4 deletions tests/src/core/testqgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ void TestQgsVectorFileWriter::polygonGridTest()
QGis::WKBPolygon,
&mCRS );
double myInterval = 5.0;
for ( double i = -180.0;i <= 180.0;i += myInterval )
for ( double i = -180.0; i <= 180.0; i += myInterval )
{
for ( double j = -90.0;j <= 90.0;j += myInterval )
for ( double j = -90.0; j <= 90.0; j += myInterval )
{
//
// Create a polygon feature
Expand Down Expand Up @@ -340,9 +340,9 @@ void TestQgsVectorFileWriter::projectedPlygonGridTest()
QGis::WKBPolygon,
&mCRS );
double myInterval = 1000.0; //1km2
for ( double i = 0.0;i <= 10000.0;i += myInterval ) //10km
for ( double i = 0.0; i <= 10000.0; i += myInterval ) //10km
{
for ( double j = 0.0;j <= 10000.0;j += myInterval )//10km
for ( double j = 0.0; j <= 10000.0; j += myInterval )//10km
{
//
// Create a polygon feature
Expand Down

0 comments on commit b2c10ff

Please sign in to comment.