Bug report #3907

struct/class mismatch for QgsDataSourceURI

Added by Mateusz Loskot - over 18 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:Gary Sherman
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:13931

Description

In qgsdatasourceuri.h file, QgsDataSourceURI is
declared as a struct:

struct [[QgsDataSourceURI]]
{
//...
};

but in file qgsdataprovider.h the same type is
announced in forward declaration using class keyword:

class [[QgsDataSourceURI]];

The compiler will use the type given in the definition,
instead of that in forward declaration.

History

#1 Updated by Gavin Macaulay - over 18 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Fixed in 273b0a1b (SVN r5230)

#2 Updated by Anonymous over 15 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF