diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:29:33 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:29:33 +0800 |
commit | b0cde0ef639ef043b0d02e224e8da1578e9c9377 (patch) | |
tree | ead207b51c4027ee35e9c562092032b2f7378db3 | |
parent | 7cd8e9920cfc76ef13bd2a2336864cdd719da1a9 (diff) | |
download | freebsd-ports-gnome-b0cde0ef639ef043b0d02e224e8da1578e9c9377.tar.gz freebsd-ports-gnome-b0cde0ef639ef043b0d02e224e8da1578e9c9377.tar.zst freebsd-ports-gnome-b0cde0ef639ef043b0d02e224e8da1578e9c9377.zip |
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)
-rw-r--r-- | devel/alabastra/files/patch-src_AlWinMain.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/alabastra/files/patch-src_AlWinMain.cpp b/devel/alabastra/files/patch-src_AlWinMain.cpp new file mode 100644 index 000000000000..8196d593d79a --- /dev/null +++ b/devel/alabastra/files/patch-src_AlWinMain.cpp @@ -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(" /*********/ " + " /* */ " + " /*********/ " ); |