summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-22 13:45:00 -0700
committerLei Zhang <thestig@chromium.org>2015-09-22 13:45:00 -0700
commitf316bfe37e2fc977376e18f7534aae9824da240a (patch)
tree32e0bab1155890f43e63424645f5351e587c3fdb /core
parent61327fe3c46b73141b4c885a98e97cd5d1412aba (diff)
downloadpdfium-f316bfe37e2fc977376e18f7534aae9824da240a.tar.xz
Add missing 'return' keyword.
Discovered with experimental Clang plugin that flags temporary objects that are immediately destroyed. patch from issue 1359063003 at patchset 1 (http://crrev.com/1359063003#ps1) A=mdempsky@chromium.org R=mdempsky@chromium.org Review URL: https://codereview.chromium.org/1359103002 .
Diffstat (limited to 'core')
-rw-r--r--core/src/fxge/ge/fx_ge_fontmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index d8f20469b3..90b3c52546 100644
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp
@@ -537,7 +537,7 @@ CFX_ByteString _FPDF_LoadTableFromTTStreamFile(IFX_FileStream* pFile,
}
CFX_ByteString CFX_FontMapper::GetPSNameFromTT(void* hFont) {
if (m_pFontInfo == NULL) {
- CFX_ByteString();
+ return CFX_ByteString();
}
CFX_ByteString result;
FX_DWORD size = m_pFontInfo->GetFontData(hFont, 0x6e616d65, NULL, 0);