Skip to content

Commit

Permalink
Fix build error and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 20, 2017
1 parent 7daa4b5 commit e54bc9a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
4 changes: 4 additions & 0 deletions src/core/qgscacheindex.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class QgsFeatureIterator;
class CORE_EXPORT QgsAbstractCacheIndex class CORE_EXPORT QgsAbstractCacheIndex
{ {
public: public:

/**
* Constructor for QgsAbstractCacheIndex.
*/
QgsAbstractCacheIndex() = default; QgsAbstractCacheIndex() = default;
virtual ~QgsAbstractCacheIndex() = default; virtual ~QgsAbstractCacheIndex() = default;


Expand Down
3 changes: 3 additions & 0 deletions src/core/qgscolorscheme.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class CORE_EXPORT QgsColorScheme
}; };
Q_DECLARE_FLAGS( SchemeFlags, SchemeFlag ) Q_DECLARE_FLAGS( SchemeFlags, SchemeFlag )


/**
* Constructor for QgsColorScheme.
*/
QgsColorScheme() = default; QgsColorScheme() = default;


virtual ~QgsColorScheme() = default; virtual ~QgsColorScheme() = default;
Expand Down
26 changes: 13 additions & 13 deletions src/core/qgsvectorlayer.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4166,22 +4166,22 @@ QString QgsVectorLayer::metadata() const
// //
myMetadata += R"(<p class="glossy">)" + tr( "Layer Spatial Reference System" ) + "</p>\n"; myMetadata += R"(<p class="glossy">)" + tr( "Layer Spatial Reference System" ) + "</p>\n";
myMetadata += QLatin1String( "<p>" ); myMetadata += QLatin1String( "<p>" );
myMetadata += crs().toProj4().replace( '"', QLatin1String( R"( " )" ) ); myMetadata += crs().toProj4().replace( '"', QLatin1String( " \"" ) );
myMetadata += QLatin1String( " < / p > \n" ); myMetadata += QLatin1String( "</p>\n" );


// //
// Display project (output) spatial ref system // Display project (output) spatial ref system
// //
#if 0 #if 0
// TODO: disabled for now, will revisit later [MD] // TODO: disabled for now, will revisit later [MD]
//myMetadata += "<tr> < td bgcolor = \"gray\">"; //myMetadata += "<tr> < td bgcolor = \"gray\">";
myMetadata += "<p class=\"glossy\">" + tr( "Project (Output) Spatial Reference System" ) + "</p>\n"; myMetadata += "<p class=\"glossy\">" + tr( "Project (Output) Spatial Reference System" ) + "</p>\n";
myMetadata += "<p>"; myMetadata += "<p>";
myMetadata += coordinateTransform->destCRS().toProj4().replace( '"', " \"" ); myMetadata += coordinateTransform->destCRS().toProj4().replace( '"', " \"" );
myMetadata += "</p>\n"; myMetadata += "</p>\n";
#endif #endif
} }
catch ( QgsCsException &cse ) catch ( QgsCsException &cse )
{ {
Q_UNUSED( cse ); Q_UNUSED( cse );
QgsDebugMsg( cse.what() ); QgsDebugMsg( cse.what() );
Expand Down

0 comments on commit e54bc9a

Please sign in to comment.