From 51a58f3eacc3da7fe9757364f836891131716b5c Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Fri, 21 Dec 2012 09:43:34 +0100 Subject: [PATCH] [Prevent] Deleted unreachable code. [Issue] Unreachable code. [Bug] N/A [Cause] N/A [Solution] Deleted two unreachable return statements. [Verification] Build commons. Change-Id: I07be1ad33fcd045c109ee18c158f5fc0010b3ef0 --- modules/core/src/string.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/core/src/string.cpp b/modules/core/src/string.cpp index efb68c7..f03ccec 100644 --- a/modules/core/src/string.cpp +++ b/modules/core/src/string.cpp @@ -115,7 +115,6 @@ String FromUTF8String(const std::string& aIn) ThrowMsg(StringException::IconvConvertErrorUTF8ToUTF32, "iconv failed for " << "UTF-32 <- UTF-8" << "error: " << GetErrnoString()); - return String(); } // Ignore BOM in front of UTF-32 @@ -158,7 +157,6 @@ std::string ToUTF8String(const DPL::String& aIn) ThrowMsg(StringException::IconvConvertErrorUTF32ToUTF8, "iconv failed for " << "UTF-8 <- UTF-32" << "error: " << GetErrnoString()); - return std::string(); } return &output[0]; -- 2.34.1