File tree 1 file changed +4
-6
lines changed
src/plugins/ogr_converter
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 26
26
#include < QAction>
27
27
#include < QFile>
28
28
#include < QToolBar>
29
- // std
30
- #include < cassert>
31
29
32
30
#include < ogr_api.h>
33
31
@@ -46,7 +44,7 @@ OgrPlugin::OgrPlugin( QgisInterface * theQgisInterface ) :
46
44
mQGisIface( theQgisInterface ),
47
45
mQActionPointer( 0 )
48
46
{
49
- assert ( 0 != mQGisIface );
47
+ Q_ASSERT ( mQGisIface );
50
48
}
51
49
52
50
OgrPlugin::~OgrPlugin ()
@@ -83,7 +81,7 @@ void OgrPlugin::help()
83
81
84
82
void OgrPlugin::run ()
85
83
{
86
- assert ( 0 != mQGisIface );
84
+ Q_ASSERT ( mQGisIface );
87
85
88
86
Dialog* ogrDialog = new Dialog ( mQGisIface ->mainWindow (), QgisGui::ModalDialogFlags );
89
87
ogrDialog->setAttribute ( Qt::WA_DeleteOnClose );
@@ -92,13 +90,13 @@ void OgrPlugin::run()
92
90
93
91
void OgrPlugin::unload ()
94
92
{
95
- assert ( 0 != mQGisIface );
93
+ Q_ASSERT ( mQGisIface );
96
94
97
95
// TODO: Who is responsible for OGR cleanup?
98
96
// OGRCleanupAll();
99
97
100
98
// remove the GUI
101
- mQGisIface ->removePluginMenu ( " OG&R Converter" , mQActionPointer );
99
+ mQGisIface ->removePluginMenu ( tr ( " OG&R Converter" ) , mQActionPointer );
102
100
mQGisIface ->removeToolBarIcon ( mQActionPointer );
103
101
delete mQActionPointer ;
104
102
}
You can’t perform that action at this time.
0 commit comments