From 716c8495c6ec4d81ea4f0287d73107c542c447d7 Mon Sep 17 00:00:00 2001 From: Berserker Date: Sun, 25 Sep 2016 01:02:21 +0300 Subject: [PATCH] Add missing else --- core/base/src/TBuffer.cxx | 2 +- core/meta/src/TCling.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base/src/TBuffer.cxx b/core/base/src/TBuffer.cxx index 794236bd4c88b..151d964b6ba8c 100644 --- a/core/base/src/TBuffer.cxx +++ b/core/base/src/TBuffer.cxx @@ -214,7 +214,7 @@ void TBuffer::Expand(Int_t newsize, Bool_t copy) if (fBuffer == 0) { if (fReAllocFunc == TStorage::ReAllocChar) { Fatal("Expand","Failed to expand the data buffer using TStorage::ReAllocChar."); - } if (fReAllocFunc == R__NoReAllocChar) { + } else if (fReAllocFunc == R__NoReAllocChar) { Fatal("Expand","Failed to expand the data buffer because TBuffer does not own it and no custom memory reallocator was provided."); } else { Fatal("Expand","Failed to expand the data buffer using custom memory reallocator 0x%lx.", (Long_t)fReAllocFunc); diff --git a/core/meta/src/TCling.cxx b/core/meta/src/TCling.cxx index 9b57c85a67da9..07a973fae2737 100644 --- a/core/meta/src/TCling.cxx +++ b/core/meta/src/TCling.cxx @@ -4008,7 +4008,7 @@ TInterpreter::DeclId_t TCling::GetDeclId( const llvm::GlobalValue *gv ) const if (!strncmp(scopename.c_str(), "typeinfo for ", sizeof("typeinfo for ")-1)) { scopename.erase(0, sizeof("typeinfo for ")-1); - } if (!strncmp(scopename.c_str(), "vtable for ", sizeof("vtable for ")-1)) { + } else if (!strncmp(scopename.c_str(), "vtable for ", sizeof("vtable for ")-1)) { scopename.erase(0, sizeof("vtable for ")-1); } else { // See if it is a function