Skip to content

Commit

Permalink
Got rid of some compiler warnings
Browse files Browse the repository at this point in the history
Further conversion to qgsapplication::themePath in qgisapp


git-svn-id: http://svn.osgeo.org/qgis/trunk@4483 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 6, 2006
1 parent b9a1c6c commit dbfec83
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/qgisapp.cpp
Expand Up @@ -2475,6 +2475,7 @@ void QgisApp::newVectorLayer()
//try to create the new layer with OGRProvider instead of QgsVectorFileWriter
QgsProviderRegistry * pReg = QgsProviderRegistry::instance();
QString ogrlib = pReg->library("ogr");
// This var is not used...remove? TS FIXME
const char *cOgrLib = (const char *) ogrlib;
// load the data provider
QLibrary* myLib = new QLibrary((const char *) ogrlib);
Expand Down Expand Up @@ -4901,7 +4902,7 @@ int QgisApp::addPluginMenu(QString menuText, QMenu *menu)

QMenu* QgisApp::getPluginMenu(QString menuName)
{
for (int i = 0; i < mPluginMenu->count(); ++i)
for (unsigned int i = 0; i < mPluginMenu->count(); ++i)
if (mPluginMenu->text(mPluginMenu->idAt(i)) == menuName)
{
QMenuItem* item = mPluginMenu->findItem(mPluginMenu->idAt(i));
Expand Down Expand Up @@ -4943,7 +4944,7 @@ void QgisApp::removePluginToolBarIcon(QAction *qAction)

void QgisApp::projectionsEnabled(bool theFlag)
{
QString myIconPath = mAppDir +"/share/qgis/themes/" + mThemeName;
QString myIconPath = QgsApplication::themePath();
if (theFlag)
{
QPixmap myProjPixmap;
Expand Down
2 changes: 1 addition & 1 deletion src/qgsapplication.h
Expand Up @@ -4,7 +4,7 @@
Date : 02-Jan-2006
Copyright : (C) 2006 by Tom Elwertowski
Email : telwertowski at users dot sourceforge dot net
/***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand Down
2 changes: 1 addition & 1 deletion src/qgsattributeaction.h
Expand Up @@ -111,7 +111,7 @@ class QgsAttributeAction
{ return mActions.end(); }

//! Returns the number of stored actions
int size() const { mActions.size(); }
int size() const { return mActions.size(); }

//! Expands the given action, replacing all %'s with the value as
// given.
Expand Down
2 changes: 1 addition & 1 deletion src/qgsmaptopixel.h
Expand Up @@ -168,7 +168,7 @@ inline void QgsMapToPixel::transformInPlace(std::vector<double>& x,
std::vector<double>& y)
{
assert(x.size() == y.size());
for (int i = 0; i < x.size(); ++i)
for (unsigned int i = 0; i < x.size(); ++i)
transformInPlace(x[i], y[i]);
}
#endif // QGSMAPTOPIXEL
3 changes: 3 additions & 0 deletions src/qgsproviderregistry.h
Expand Up @@ -41,6 +41,9 @@ class QgsProviderRegistry
/** means of accessing canonical single instance
*/
static QgsProviderRegistry* instance(QString pluginPath = QString::null);

/** Virtual dtor */
virtual ~QgsProviderRegistry() {};

QString library(QString const & providerKey) const;

Expand Down
2 changes: 2 additions & 0 deletions src/qgsrenderer.h
Expand Up @@ -46,6 +46,8 @@ class QgsRenderer
public:
/** Default ctor sets up selection colour from project properties */
QgsRenderer();
/** Virtual destructor because we have virtual methods... */
virtual ~QgsRenderer() {};
/**A vector layer passes features to a renderer object to change the brush and pen of the qpainter
@param p the painter storing brush and pen
@param f a pointer to the feature to be rendered
Expand Down
2 changes: 1 addition & 1 deletion src/qgsrenderitem.h
Expand Up @@ -43,7 +43,7 @@ class QgsRenderItem {
*/
QgsRenderItem(QgsSymbol* symbol, QString _value, QString _label);
/**Destructor*/
~QgsRenderItem();
virtual ~QgsRenderItem();
/** Gets the symbol associated with this render item
* @return QgsSymbol pointer
*/
Expand Down

0 comments on commit dbfec83

Please sign in to comment.