summaryrefslogtreecommitdiff
path: root/source/core/slang-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-string.h')
-rw-r--r--source/core/slang-string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index 8a9e83cd1..560d137db 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -511,7 +511,7 @@ namespace Slang
~String()
{
- m_buffer = 0;
+ m_buffer.setNull();
}
String & operator=(const String & str)
@@ -980,7 +980,7 @@ namespace Slang
void Clear()
{
- m_buffer = 0;
+ m_buffer.setNull();
}
};