Fix systemCachePath check 86/213486/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 5 Sep 2019 16:12:34 +0000 (17:12 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 9 Sep 2019 13:00:53 +0000 (14:00 +0100)
The check before was pointless as it cannot ever be NULL.
We can just use the std::string::empty() method to do this.

Change-Id: I0da3a544b2b18e2820f452a502b2542f4440282f

dali/internal/adaptor/common/adaptor-impl.cpp

index 69d0da6..3416ed8 100755 (executable)
@@ -289,7 +289,7 @@ void Adaptor::Initialize( GraphicsFactory& graphicsFactory, Dali::Configuration:
   }
 
   std::string systemCachePath = GetSystemCachePath();
-  if ( systemCachePath.c_str() != NULL )
+  if ( ! systemCachePath.empty() )
   {
     Dali::FileStream fileStream( systemCachePath + "gpu-environment.conf", Dali::FileStream::READ | Dali::FileStream::TEXT );
     std::fstream& stream = dynamic_cast<std::fstream&>( fileStream.GetStream() );