1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/deskutils/gnote/files/patch-src_synchronization_gnotesyncclient.cpp
Jung-uk Kim fdf6f6fc64 Fix build with glibmm 2.50 (r437481).
It is backported from the upstream commit:

https://git.gnome.org/browse/gnote/commit/?id=df504af

Approved by:	bapt
2017-04-04 19:41:08 +00:00

12 lines
561 B
C++

--- src/synchronization/gnotesyncclient.cpp.orig 2015-11-28 15:44:34 UTC
+++ src/synchronization/gnotesyncclient.cpp
@@ -54,7 +54,7 @@ namespace sync {
{
m_local_manifest_file_path = Glib::build_filename(IGnote::conf_dir(), LOCAL_MANIFEST_FILE_NAME);
Glib::RefPtr<Gio::File> manifest = Gio::File::create_for_path(m_local_manifest_file_path);
- if(manifest != 0) {
+ if(manifest) {
m_file_watcher = manifest->monitor_file();
m_file_watcher->signal_changed()
.connect(sigc::mem_fun(*this, &GnoteSyncClient::on_changed));