From 32535f5bf64417fca34ca6884677197f929cb968 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 18 Feb 2017 11:16:38 -0800 Subject: [PATCH] Remove redundant return of wxEmptyString --- src/common/filesys.cpp | 2 +- src/common/stockitem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 82bb76e86c..232f41aa40 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -242,7 +242,7 @@ wxString wxFileSystemHandler::GetAnchor(const wxString& location) if (c == wxT('#')) return location.Right(l-i-1); else if ((c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) - return wxEmptyString; + break; } return wxEmptyString; } diff --git a/src/common/stockitem.cpp b/src/common/stockitem.cpp index 7eac91acc0..900a77eb84 100644 --- a/src/common/stockitem.cpp +++ b/src/common/stockitem.cpp @@ -269,7 +269,7 @@ wxString wxGetStockHelpString(wxWindowID id, wxStockHelpStringClient client) default: // there's no stock help string for this ID / client - return wxEmptyString; + break; } #undef STOCKITEM