Skip to content

Commit

Permalink
fix warnings on lupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 27, 2015
1 parent 66d72f0 commit 416c004
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
8 changes: 4 additions & 4 deletions src/core/symbology-ng/qgssymbollayerv2.h
Expand Up @@ -121,11 +121,11 @@ class CORE_EXPORT QgsSymbolLayerV2
be affected by data defined symbology rules.*/
virtual double estimateMaxBleed() const { return 0; }

virtual void setOutputUnit( QgsSymbolV2::OutputUnit unit ) { Q_UNUSED( unit ); } //= 0;
virtual QgsSymbolV2::OutputUnit outputUnit() const { return QgsSymbolV2::Mixed; } //= 0;
virtual void setOutputUnit( QgsSymbolV2::OutputUnit unit ) { Q_UNUSED( unit ); }
virtual QgsSymbolV2::OutputUnit outputUnit() const { return QgsSymbolV2::Mixed; }

virtual void setMapUnitScale( const QgsMapUnitScale& scale ) { Q_UNUSED( scale ); } //= 0;
virtual QgsMapUnitScale mapUnitScale() const { return QgsMapUnitScale(); } //= 0;
virtual void setMapUnitScale( const QgsMapUnitScale& scale ) { Q_UNUSED( scale ); }
virtual QgsMapUnitScale mapUnitScale() const { return QgsMapUnitScale(); }

// used only with rending with symbol levels is turned on (0 = first pass, 1 = second, ...)
void setRenderingPass( int renderingPass ) { mRenderingPass = renderingPass; }
Expand Down
10 changes: 6 additions & 4 deletions src/gui/qgsdetaileditemdelegate.cpp
Expand Up @@ -291,11 +291,13 @@ int QgsDetailedItemDelegate::height( const QStyleOptionViewItem &theOption,
myHeight += ( myList.count() + 1 ) * ( myDetailMetrics.height() - verticalSpacing() );
//we don't word wrap the category so its easy to measure
myHeight += myCategoryMetrics.height() + verticalSpacing();
#if 0
// if category should be wrapped use this code
//~ myList = wordWrap( theData.category(),
//~ myCategoryMetrics,
//~ theOption.rect.width() - ( mpCheckBox->width() + horizontalSpacing() ) );
//~ myHeight += ( myList.count() + 1 ) * ( myCategoryMetrics.height() - verticalSpacing() );
myList = wordWrap( theData.category(),
myCategoryMetrics,
theOption.rect.width() - ( mpCheckBox->width() + horizontalSpacing() ) );
myHeight += ( myList.count() + 1 ) * ( myCategoryMetrics.height() - verticalSpacing() );
#endif
return myHeight;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -993,7 +993,7 @@ void GlobePlugin::help()
{
}

void GlobePlugin::placeNode( osg::Node* node, double lat, double lon, double alt /*= 0.0*/ )
void GlobePlugin::placeNode( osg::Node* node, double lat, double lon, double alt )
{
#ifdef HAVE_OSGEARTH_ELEVATION_QUERY
Q_UNUSED( node );
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/offline_editing/offline_editing_plugin_gui.cpp
Expand Up @@ -67,7 +67,7 @@ QVariant QgsSelectLayerTreeModel::data( const QModelIndex& index, int role ) con
}


QgsOfflineEditingPluginGui::QgsOfflineEditingPluginGui( QWidget* parent /*= 0*/, Qt::WindowFlags fl /*= 0*/ )
QgsOfflineEditingPluginGui::QgsOfflineEditingPluginGui( QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl )
{
setupUi( this );
Expand Down
Expand Up @@ -18,7 +18,7 @@

#include "offline_editing_progress_dialog.h"

QgsOfflineEditingProgressDialog::QgsOfflineEditingProgressDialog( QWidget* parent /*= 0*/, Qt::WindowFlags fl /*= 0*/ )
QgsOfflineEditingProgressDialog::QgsOfflineEditingProgressDialog( QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl )
, mProgressUpdate( 0 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsgetrequesthandler.cpp
Expand Up @@ -19,7 +19,7 @@
#include <QUrl>
#include <stdlib.h>

QgsGetRequestHandler::QgsGetRequestHandler( const bool captureOutput /*= FALSE*/ )
QgsGetRequestHandler::QgsGetRequestHandler( const bool captureOutput )
: QgsHttpRequestHandler( captureOutput )
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgshttprequesthandler.cpp
Expand Up @@ -33,7 +33,7 @@
#include <fcgi_stdio.h>


QgsHttpRequestHandler::QgsHttpRequestHandler( const bool captureOutput /*= FALSE*/ )
QgsHttpRequestHandler::QgsHttpRequestHandler( const bool captureOutput )
: QgsRequestHandler( )
{
mException = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgshttprequesthandler.h
Expand Up @@ -33,7 +33,7 @@ It provides a method to set data to the client*/
class QgsHttpRequestHandler: public QgsRequestHandler
{
public:
explicit QgsHttpRequestHandler( const bool captureOutput /*= FALSE*/ );
explicit QgsHttpRequestHandler( const bool captureOutput );
~QgsHttpRequestHandler();

virtual void setGetMapResponse( const QString& service, QImage* img, int imageQuality ) override;
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgspostrequesthandler.cpp
Expand Up @@ -19,7 +19,7 @@
#include "qgsmessagelog.h"
#include <QDomDocument>

QgsPostRequestHandler::QgsPostRequestHandler( const bool captureOutput /*= FALSE*/ )
QgsPostRequestHandler::QgsPostRequestHandler( const bool captureOutput )
: QgsHttpRequestHandler( captureOutput )
{
}
Expand Down
6 changes: 3 additions & 3 deletions src/server/qgsserver.cpp
Expand Up @@ -111,7 +111,7 @@ void QgsServer::setupNetworkAccessManager()
* @param captureOutput
* @return request instance
*/
QgsRequestHandler* QgsServer::createRequestHandler( const bool captureOutput /*= false*/ )
QgsRequestHandler* QgsServer::createRequestHandler( const bool captureOutput )
{
QgsRequestHandler* requestHandler = nullptr;
char* requestMethod = getenv( "REQUEST_METHOD" );
Expand Down Expand Up @@ -427,13 +427,13 @@ bool QgsServer::init( int & argc, char ** argv )
* @param queryString
* @return response headers and body
*/
QPair<QByteArray, QByteArray> QgsServer::handleRequest( const QString& queryString /*= QString( )*/ )
QPair<QByteArray, QByteArray> QgsServer::handleRequest( const QString& queryString )
{
// Run init if handleRequest was called without previously initialising
// the server
if ( ! mInitialised )
{
init( );
init();
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgssoaprequesthandler.cpp
Expand Up @@ -27,7 +27,7 @@
#include <time.h>
#include <fcgi_stdio.h>

QgsSOAPRequestHandler::QgsSOAPRequestHandler( const bool captureOutput /*= FALSE*/ )
QgsSOAPRequestHandler::QgsSOAPRequestHandler( const bool captureOutput )
: QgsHttpRequestHandler( captureOutput )
{
}
Expand Down

0 comments on commit 416c004

Please sign in to comment.