no need to break from switch when returning

This commit is contained in:
Ondřej Hošek 2012-06-30 14:43:15 +02:00
parent ac0b7ef8ba
commit b537c1af7c
1 changed files with 0 additions and 10 deletions

View File

@ -229,7 +229,6 @@ HLLIB_API hlBool hlGetUnsignedIntegerValidate(HLOption eOption, hlUInt *pValue)
} }
} }
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_SIZE: case HL_PACKAGE_SIZE:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -238,7 +237,6 @@ HLLIB_API hlBool hlGetUnsignedIntegerValidate(HLOption eOption, hlUInt *pValue)
*pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetMappingSize()); *pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetMappingSize());
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_ALLOCATIONS: case HL_PACKAGE_TOTAL_ALLOCATIONS:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -247,7 +245,6 @@ HLLIB_API hlBool hlGetUnsignedIntegerValidate(HLOption eOption, hlUInt *pValue)
*pValue = pPackage->GetMapping()->GetTotalAllocations(); *pValue = pPackage->GetMapping()->GetTotalAllocations();
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_MEMORY_ALLOCATED: case HL_PACKAGE_TOTAL_MEMORY_ALLOCATED:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -256,7 +253,6 @@ HLLIB_API hlBool hlGetUnsignedIntegerValidate(HLOption eOption, hlUInt *pValue)
*pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetTotalMemoryAllocated()); *pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetTotalMemoryAllocated());
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_MEMORY_USED: case HL_PACKAGE_TOTAL_MEMORY_USED:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -265,7 +261,6 @@ HLLIB_API hlBool hlGetUnsignedIntegerValidate(HLOption eOption, hlUInt *pValue)
*pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetTotalMemoryUsed()); *pValue = static_cast<hlUInt>(pPackage->GetMapping()->GetTotalMemoryUsed());
return hlTrue; return hlTrue;
break;
default: default:
return hlFalse; return hlFalse;
} }
@ -321,7 +316,6 @@ HLLIB_API hlBool hlGetUnsignedLongLongValidate(HLOption eOption, hlULongLong *pV
} }
} }
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_SIZE: case HL_PACKAGE_SIZE:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -330,7 +324,6 @@ HLLIB_API hlBool hlGetUnsignedLongLongValidate(HLOption eOption, hlULongLong *pV
*pValue = pPackage->GetMapping()->GetMappingSize(); *pValue = pPackage->GetMapping()->GetMappingSize();
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_ALLOCATIONS: case HL_PACKAGE_TOTAL_ALLOCATIONS:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -339,7 +332,6 @@ HLLIB_API hlBool hlGetUnsignedLongLongValidate(HLOption eOption, hlULongLong *pV
*pValue = static_cast<hlULongLong>(pPackage->GetMapping()->GetTotalAllocations()); *pValue = static_cast<hlULongLong>(pPackage->GetMapping()->GetTotalAllocations());
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_MEMORY_ALLOCATED: case HL_PACKAGE_TOTAL_MEMORY_ALLOCATED:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -348,7 +340,6 @@ HLLIB_API hlBool hlGetUnsignedLongLongValidate(HLOption eOption, hlULongLong *pV
*pValue = pPackage->GetMapping()->GetTotalMemoryAllocated(); *pValue = pPackage->GetMapping()->GetTotalMemoryAllocated();
return hlTrue; return hlTrue;
break;
case HL_PACKAGE_TOTAL_MEMORY_USED: case HL_PACKAGE_TOTAL_MEMORY_USED:
if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping()) if(pPackage == 0 || !pPackage->GetOpened() || !pPackage->GetMapping())
{ {
@ -357,7 +348,6 @@ HLLIB_API hlBool hlGetUnsignedLongLongValidate(HLOption eOption, hlULongLong *pV
*pValue = pPackage->GetMapping()->GetTotalMemoryUsed(); *pValue = pPackage->GetMapping()->GetTotalMemoryUsed();
return hlTrue; return hlTrue;
break;
default: default:
return hlFalse; return hlFalse;
} }