Skip to content

Commit

Permalink
Fixed remaining warnings in grass provider and plugin.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6654 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 22, 2007
1 parent c9746a4 commit 7682e4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qgsgrassmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ void QgsGrassModuleStandardOptions::freezeOutput()
#endif

#ifdef WIN32
for ( int i = 0; i < mItems.size(); i++ )
for ( unsigned int i = 0; i < mItems.size(); i++ )
{
if ( typeid(*(mItems[i])) != typeid (QgsGrassModuleOption) ) {
continue;
Expand Down Expand Up @@ -675,7 +675,7 @@ void QgsGrassModuleStandardOptions::thawOutput()
#endif

#ifdef WIN32
for ( int i = 0; i < mItems.size(); i++ )
for ( unsigned int i = 0; i < mItems.size(); i++ )
{
if ( typeid(*(mItems[i])) != typeid (QgsGrassModuleOption) ) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassshell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,14 +900,14 @@ void QgsGrassShell::mousePressEvent(QMouseEvent* e)

void QgsGrassShell::resizeTerminal()
{
#ifndef WIN32
int width = mText->visibleWidth();
int height = mText->visibleHeight();

QFontMetrics fm ( mFont );
int col = (int) (width / fm.width("x"));
int row = (int) (height / fm.height());

#ifndef WIN32
struct winsize winSize;
memset(&winSize, 0, sizeof(winSize));
winSize.ws_row = row;
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grass/qgsgrasstools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ void QgsGrassTools::moduleClicked( Q3ListViewItem * item )
std::cerr << "path = " << path.ascii() << std::endl;
#endif
QWidget *m;
QgsGrassShell *sh = 0;
if ( name == "shell" )
{
// Set history file
Expand Down
6 changes: 3 additions & 3 deletions src/providers/grass/qgsgrass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,12 @@ QString QgsGrass::openMapset ( QString gisdbase, QString location, QString mapse
// TODO better wait
while ( process->isRunning () ) { }

int status = process->exitStatus ();
delete process;

#ifdef QGISDEBUG
int status = process->exitStatus ();
std::cerr << "status = " << status << std::endl;
#endif
delete process;


// TODO WIN32 (lock.exe does not work properly?)
#ifndef WIN32
Expand Down

0 comments on commit 7682e4e

Please sign in to comment.