openbsd-ports/astro/celestia/patches/patch-src_celengine_parseobject_cpp
2022-03-11 18:17:37 +00:00

17 lines
463 B
Plaintext

ports-gcc fix for:
parseobject.cpp:280:10: error: converting to 'bool' from 'std::nullptr_t'
requires direct-initialization
Index: src/celengine/parseobject.cpp
--- src/celengine/parseobject.cpp.orig
+++ src/celengine/parseobject.cpp
@@ -278,7 +278,7 @@ ParseStringList(Hash* table,
{
Value* v = table->getValue(propertyName);
if (v == NULL)
- return NULL;
+ return false;
// Check for a single string first.
if (v->getType() == Value::StringType)