Fixed dereferenced null pointer

This commit is contained in:
Markus Gans 2018-05-27 23:06:49 +02:00
parent 9e46fbb4f9
commit 4b82af367f
1 changed files with 0 additions and 9 deletions

View File

@ -139,9 +139,6 @@ FString::FString (const FString& s) // copy constructor
, bufsize(0) , bufsize(0)
, c_string(0) , c_string(0)
{ {
if ( ! &s )
return;
if ( s.isNull() ) if ( s.isNull() )
return; return;
else else
@ -155,9 +152,6 @@ FString::FString (const std::wstring& s)
, bufsize(0) , bufsize(0)
, c_string(0) , c_string(0)
{ {
if ( ! &s )
return;
if ( s.empty() ) if ( s.empty() )
_assign (L""); _assign (L"");
else else
@ -190,9 +184,6 @@ FString::FString (const std::string& s)
, bufsize(0) , bufsize(0)
, c_string(0) , c_string(0)
{ {
if ( ! &s )
return;
if ( s.empty() ) if ( s.empty() )
{ {
_assign(L""); _assign(L"");