Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 9, 2015
1 parent 1c0b607 commit 86ffda6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/providers/grass/qgsgrassvector.h
Expand Up @@ -24,7 +24,7 @@

#include "qgsgrass.h"

class QgsGrassVectorLayer : public QObject
class GRASS_LIB_EXPORT QgsGrassVectorLayer : public QObject
{
Q_OBJECT
public:
Expand Down Expand Up @@ -73,7 +73,7 @@ class QgsGrassVectorLayer : public QObject
QString mError;
};

class QgsGrassVector : public QObject
class GRASS_LIB_EXPORT QgsGrassVector : public QObject
{
Q_OBJECT
public:
Expand Down
6 changes: 3 additions & 3 deletions src/python/qgspythonutilsimpl.cpp
Expand Up @@ -73,7 +73,7 @@ bool QgsPythonUtilsImpl::checkSystemImports()
// locally installed plugins have priority over the system plugins
// use os.path.expanduser to support usernames with special characters (see #2512)
QStringList pluginpaths;
Q_FOREACH ( const QString& p, extraPluginsPaths() )
Q_FOREACH( QString p, extraPluginsPaths() )
{
if ( !QDir( p ).exists() )
{
Expand All @@ -83,7 +83,7 @@ bool QgsPythonUtilsImpl::checkSystemImports()
msg->showMessage();
}
#ifdef Q_OS_WIN
p = p.replace( '\\', "\\\\" );
p.replace( '\\', "\\\\" );
#endif
// we store here paths in unicode strings
// the str constant will contain utf8 code (through runString)
Expand Down Expand Up @@ -111,7 +111,7 @@ bool QgsPythonUtilsImpl::checkSystemImports()
// set PyQt4 api versions
QStringList apiV2classes;
apiV2classes << "QDate" << "QDateTime" << "QString" << "QTextStream" << "QTime" << "QUrl" << "QVariant";
Q_FOREACH ( const QString& clsName, apiV2classes )
Q_FOREACH( const QString& clsName, apiV2classes )
{
if ( !runString( QString( "sip.setapi('%1', 2)" ).arg( clsName ),
QObject::tr( "Couldn't set SIP API versions." ) + "\n" + QObject::tr( "Python support will be disabled." ) ) )
Expand Down

0 comments on commit 86ffda6

Please sign in to comment.