mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
devel/alabastra: unbreak with clang 4.0
src/AlWinMain.cpp:164:35: error: ordered comparison between pointer and zero ('QListWidgetItem *' and 'int') if (ui.list_files->currentItem() > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ src/AlWinMain.cpp:722:16: error: ordered comparison between pointer and zero ('AlTextEdit *' and 'int') if (actualTxt > 0 && ui.list_files->currentItem() > 0) ~~~~~~~~~ ^ ~ src/AlWinMain.cpp:722:52: error: ordered comparison between pointer and zero ('QListWidgetItem *' and 'int') if (actualTxt > 0 && ui.list_files->currentItem() > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ src/AlWinMain.cpp:731:16: error: ordered comparison between pointer and zero ('AlTextEdit *' and 'int') if (actualTxt > 0 && ui.list_files->currentItem() > 0) ~~~~~~~~~ ^ ~ src/AlWinMain.cpp:731:52: error: ordered comparison between pointer and zero ('QListWidgetItem *' and 'int') if (actualTxt > 0 && ui.list_files->currentItem() > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: antoine (via exp-run)
This commit is contained in:
parent
085821390c
commit
11b1ad8d78
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432988
29
devel/alabastra/files/patch-src_AlWinMain.cpp
Normal file
29
devel/alabastra/files/patch-src_AlWinMain.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/AlWinMain.cpp.orig 2007-10-13 11:06:35 UTC
|
||||
+++ src/AlWinMain.cpp
|
||||
@@ -161,7 +161,7 @@ void AlWinMain::connectEditor( AlTextEdi
|
||||
*/
|
||||
void AlWinMain::insertDateTime(){
|
||||
QDateTime dt=QDateTime::currentDateTime();
|
||||
- if (ui.list_files->currentItem() > 0)
|
||||
+ if (ui.list_files->currentItem() != NULL)
|
||||
actualTxt->textCursor().insertText(dt.toString(Qt::LocalDate));
|
||||
};
|
||||
|
||||
@@ -719,7 +719,7 @@ void AlWinMain::refresh()
|
||||
*/
|
||||
void AlWinMain::cancella()
|
||||
{
|
||||
- if (actualTxt > 0 && ui.list_files->currentItem() > 0)
|
||||
+ if (actualTxt != NULL && ui.list_files->currentItem() != NULL)
|
||||
actualTxt->clear();
|
||||
|
||||
};
|
||||
@@ -728,7 +728,7 @@ void AlWinMain::cancella()
|
||||
*/
|
||||
void AlWinMain::insertComment()
|
||||
{
|
||||
- if (actualTxt > 0 && ui.list_files->currentItem() > 0)
|
||||
+ if (actualTxt != NULL && ui.list_files->currentItem() != NULL)
|
||||
actualTxt->textCursor().insertText(" /*********/ "
|
||||
" /* */ "
|
||||
" /*********/ " );
|
Loading…
Reference in New Issue
Block a user