Skip to content

Commit e54bc9a

Browse files
committedFeb 20, 2017
Fix build error and warnings
1 parent 7daa4b5 commit e54bc9a

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed
 

‎src/core/qgscacheindex.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class QgsFeatureIterator;
3030
class CORE_EXPORT QgsAbstractCacheIndex
3131
{
3232
public:
33+
34+
/**
35+
* Constructor for QgsAbstractCacheIndex.
36+
*/
3337
QgsAbstractCacheIndex() = default;
3438
virtual ~QgsAbstractCacheIndex() = default;
3539

‎src/core/qgscolorscheme.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ class CORE_EXPORT QgsColorScheme
5454
};
5555
Q_DECLARE_FLAGS( SchemeFlags, SchemeFlag )
5656

57+
/**
58+
* Constructor for QgsColorScheme.
59+
*/
5760
QgsColorScheme() = default;
5861

5962
virtual ~QgsColorScheme() = default;

‎src/core/qgsvectorlayer.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,22 +4166,22 @@ QString QgsVectorLayer::metadata() const
41664166
//
41674167
myMetadata += R"(<p class="glossy">)" + tr( "Layer Spatial Reference System" ) + "</p>\n";
41684168
myMetadata += QLatin1String( "<p>" );
4169-
myMetadata += crs().toProj4().replace( '"', QLatin1String( R"( " )" ) );
4170-
myMetadata += QLatin1String( " < / p > \n" );
4169+
myMetadata += crs().toProj4().replace( '"', QLatin1String( " \"" ) );
4170+
myMetadata += QLatin1String( "</p>\n" );
41714171

4172-
//
4173-
// Display project (output) spatial ref system
4174-
//
4172+
//
4173+
// Display project (output) spatial ref system
4174+
//
41754175
#if 0
4176-
// TODO: disabled for now, will revisit later [MD]
4177-
//myMetadata += "<tr> < td bgcolor = \"gray\">";
4178-
myMetadata += "<p class=\"glossy\">" + tr( "Project (Output) Spatial Reference System" ) + "</p>\n";
4179-
myMetadata += "<p>";
4180-
myMetadata += coordinateTransform->destCRS().toProj4().replace( '"', " \"" );
4181-
myMetadata += "</p>\n";
4176+
// TODO: disabled for now, will revisit later [MD]
4177+
//myMetadata += "<tr> < td bgcolor = \"gray\">";
4178+
myMetadata += "<p class=\"glossy\">" + tr( "Project (Output) Spatial Reference System" ) + "</p>\n";
4179+
myMetadata += "<p>";
4180+
myMetadata += coordinateTransform->destCRS().toProj4().replace( '"', " \"" );
4181+
myMetadata += "</p>\n";
41824182
#endif
4183-
}
4184-
catch ( QgsCsException &cse )
4183+
}
4184+
catch ( QgsCsException &cse )
41854185
{
41864186
Q_UNUSED( cse );
41874187
QgsDebugMsg( cse.what() );

0 commit comments

Comments
 (0)
Please sign in to comment.