Changeset 416 for trunk/orca/qt

Show
Ignore:
Timestamp:
06/18/07 15:17:51 (17 months ago)
Author:
krobillard
Message:

Orca Qt - Fixed subtle QApplication argc reference bug.

Location:
trunk/orca/qt
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/qt/qorca.cpp

    r410 r416  
    193193 
    194194 
    195 QOrcaApp::QOrcaApp( int argc, char** argv ) : QApplication( argc, argv ) 
     195/* 
     196  Note that argc is a reference!  If it is not, QApplication will 
     197  store the stack position of the local argc and crash when argc is used 
     198  after the constructor exits. 
     199*/ 
     200QOrcaApp::QOrcaApp( int& argc, char** argv ) : QApplication( argc, argv ) 
    196201{ 
    197202    setQuitOnLastWindowClosed( false ); 
  • trunk/orca/qt/qorca.h

    r410 r416  
    122122public: 
    123123 
    124     QOrcaApp( int argc, char** argv ); 
     124    QOrcaApp( int& argc, char** argv ); 
    125125}; 
    126126