Merge
This commit is contained in:
commit
9a4605e735
@ -86,7 +86,7 @@ public:
|
||||
return ObjectPtr(obj, ObjectMemPolicy::CopyReference);
|
||||
}
|
||||
|
||||
ObjectPtr& operator=(nullptr_t)
|
||||
ObjectPtr& operator=(std::nullptr_t)
|
||||
{
|
||||
reset();
|
||||
return *this;
|
||||
@ -127,7 +127,7 @@ public:
|
||||
return m_p == nullptr;
|
||||
}
|
||||
|
||||
bool operator==(const nullptr_t&) const
|
||||
bool operator==(const std::nullptr_t&) const
|
||||
{
|
||||
return m_p == nullptr;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ gstr::gstr()
|
||||
{
|
||||
}
|
||||
|
||||
gstr::gstr(nullptr_t)
|
||||
gstr::gstr(std::nullptr_t)
|
||||
: gstr()
|
||||
{
|
||||
}
|
||||
@ -112,7 +112,7 @@ bool gstr::operator==(const char* other) const
|
||||
return strcmp(get(), other ? other : "") == 0;
|
||||
}
|
||||
|
||||
bool gstr::operator==(nullptr_t) const
|
||||
bool gstr::operator==(std::nullptr_t) const
|
||||
{
|
||||
return empty();
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ class gstr
|
||||
{
|
||||
public:
|
||||
gstr();
|
||||
gstr(nullptr_t);
|
||||
gstr(std::nullptr_t);
|
||||
explicit gstr(const char* s);
|
||||
gstr(char* s, bool);
|
||||
~gstr();
|
||||
@ -52,7 +52,7 @@ public:
|
||||
|
||||
bool operator==(const gstr& other) const;
|
||||
bool operator==(const char* other) const;
|
||||
bool operator==(nullptr_t) const;
|
||||
bool operator==(std::nullptr_t) const;
|
||||
|
||||
template<typename T>
|
||||
bool operator!=(const T& other) const
|
||||
|
@ -32,7 +32,7 @@ check_contents (const gstr& filename,
|
||||
if (!g_file_get_contents (filename.get(), &contents, NULL, &error))
|
||||
{
|
||||
TEST_FAILED_MSG ("could not load file '%s': %s",
|
||||
filename, error->message);
|
||||
filename.get(), error->message);
|
||||
g_error_free (error);
|
||||
return;
|
||||
}
|
||||
@ -223,7 +223,7 @@ test_suite_init (G_GNUC_UNUSED gpointer data)
|
||||
if (_moo_mkdir_with_parents (test_data.working_dir.get(), &err) != 0)
|
||||
{
|
||||
g_critical ("could not create directory '%s': %s",
|
||||
test_data.working_dir,
|
||||
test_data.working_dir.get(),
|
||||
mgw_strerror (err));
|
||||
test_data.working_dir.clear();
|
||||
return FALSE;
|
||||
@ -242,7 +242,7 @@ test_suite_cleanup (G_GNUC_UNUSED gpointer data)
|
||||
if (!_moo_remove_dir (test_data.working_dir.get(), TRUE, &error))
|
||||
{
|
||||
g_critical ("could not remove directory '%s': %s",
|
||||
test_data.working_dir, error->message);
|
||||
test_data.working_dir.get(), error->message);
|
||||
g_error_free (error);
|
||||
error = NULL;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ void moo_python_remove_path (const char *dir);
|
||||
#define return_Int(v) return PyInt_FromLong (v)
|
||||
|
||||
#ifdef __cplusplus
|
||||
const nullptr_t moo_nullptr = nullptr;
|
||||
const std::nullptr_t moo_nullptr = nullptr;
|
||||
#else
|
||||
#define moo_nullptr NULL
|
||||
#endif
|
||||
|
@ -119,6 +119,7 @@ moo_sources += \
|
||||
mooutils/mooutils-gobject-private.h \
|
||||
mooutils/mooutils-gobject.cpp \
|
||||
mooutils/mooutils-gobject.h \
|
||||
mooutils/mooutils-gpp.h \
|
||||
mooutils/mooutils-macros.h \
|
||||
mooutils/mooutils-mem.h \
|
||||
mooutils/mooutils-messages.h \
|
||||
@ -162,8 +163,8 @@ mooutils/mooutils-enums.c.stamp: $(moo_utils_enum_headers) Makefile mooutils/moo
|
||||
endif
|
||||
|
||||
mooutils_win32_sources = \
|
||||
mooutils/mooutils-win32.c \
|
||||
mooutils/mooappinput-win32.c
|
||||
mooutils/mooutils-win32.cpp \
|
||||
mooutils/mooappinput-win32.cpp
|
||||
|
||||
mooutils_unix_sources = \
|
||||
mooutils/mooappinput-unix.c
|
||||
|
@ -1245,8 +1245,10 @@ _moo_glob_match_simple (const char *pattern,
|
||||
if ((gl = _moo_glob_new (pattern)))
|
||||
result = _moo_glob_match (gl, filename);
|
||||
|
||||
#if 0
|
||||
if (result && 0)
|
||||
_moo_message ("'%s' matched '%s'", filename, pattern);
|
||||
#endif
|
||||
|
||||
_moo_glob_free (gl);
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user