Fix nullptr dereference
This commit is contained in:
parent
c886ef31e4
commit
b0825d5d6f
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ namespace cppast
|
||||||
/// \returns A [ts::optional_ref]() to the [cppast::cpp_expression]() that is the default value.
|
/// \returns A [ts::optional_ref]() to the [cppast::cpp_expression]() that is the default value.
|
||||||
type_safe::optional_ref<const cpp_expression> default_value() const noexcept
|
type_safe::optional_ref<const cpp_expression> default_value() const noexcept
|
||||||
{
|
{
|
||||||
return type_safe::ref(*default_);
|
return type_safe::opt_ref(default_.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue