Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6622 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Feb 18, 2007
1 parent e27edee commit d50760b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ void QgisApp::fileOpen()
QMessageBox::critical(this,
tr("QGIS Project Read Error"),
tr("") + "\n" + e.what() );
qDebug( "%s:%d %d bad layers found", __FILE__, __LINE__, e.layers().size() );
qDebug( "%s:%d %d bad layers found", __FILE__, __LINE__, static_cast<int>(e.layers().size()) );

// attempt to find the new locations for missing layers
// XXX vector file hard-coded -- but what if it's raster?
Expand Down Expand Up @@ -2756,7 +2756,7 @@ bool QgisApp::addProject(QString projectFile)
}
catch ( QgsProjectBadLayerException & e )
{
qDebug( "%s:%d %d bad layers found", __FILE__, __LINE__, e.layers().size() );
qDebug( "%s:%d %d bad layers found", __FILE__, __LINE__, static_cast<int>(e.layers().size()) );

if ( QMessageBox::Ok == QMessageBox::critical( this,
tr("QGIS Project Read Error"),
Expand Down Expand Up @@ -4198,6 +4198,7 @@ void QgisApp::openURL(QString url, bool useQgisDocDirectory)
reinterpret_cast<const UInt8*>(url.utf8().data()), url.length(),
kCFStringEncodingUTF8, NULL);
OSStatus status = LSOpenCFURLRef(urlRef, NULL);
status = 0; //avoid compiler warning
CFRelease(urlRef);
#else
// find a browser
Expand Down

0 comments on commit d50760b

Please sign in to comment.