diff --git a/HLLib/BSPFile.cpp b/HLLib/BSPFile.cpp index baa4332..6e54e23 100644 --- a/HLLib/BSPFile.cpp +++ b/HLLib/BSPFile.cpp @@ -203,10 +203,14 @@ hlBool CBSPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], uiPaletteSize, hlFalse); return hlTrue; } + default: + break; } } break; } + default: + break; } return hlFalse; diff --git a/HLLib/DirectoryFolder.cpp b/HLLib/DirectoryFolder.cpp index 8385784..47097a1 100644 --- a/HLLib/DirectoryFolder.cpp +++ b/HLLib/DirectoryFolder.cpp @@ -517,6 +517,8 @@ hlUInt CDirectoryFolder::GetSize(hlBool bRecurse) const case HL_ITEM_FILE: uiSize += static_cast(pItem)->GetSize(); break; + default: + break; } } @@ -541,6 +543,8 @@ hlULongLong CDirectoryFolder::GetSizeEx(hlBool bRecurse) const case HL_ITEM_FILE: uiSize += static_cast(static_cast(pItem)->GetSize()); break; + default: + break; } } @@ -565,6 +569,8 @@ hlUInt CDirectoryFolder::GetSizeOnDisk(hlBool bRecurse) const case HL_ITEM_FILE: uiSize += static_cast(pItem)->GetSizeOnDisk(); break; + default: + break; } } @@ -589,6 +595,8 @@ hlULongLong CDirectoryFolder::GetSizeOnDiskEx(hlBool bRecurse) const case HL_ITEM_FILE: uiSize += static_cast(static_cast(pItem)->GetSizeOnDisk()); break; + default: + break; } } @@ -611,6 +619,8 @@ hlUInt CDirectoryFolder::GetFolderCount(hlBool bRecurse) const uiCount += static_cast(pItem)->GetFolderCount(bRecurse); } break; + default: + break; } } @@ -635,6 +645,8 @@ hlUInt CDirectoryFolder::GetFileCount(hlBool bRecurse) const case HL_ITEM_FILE: uiCount++; break; + default: + break; } } diff --git a/HLLib/GCFFile.cpp b/HLLib/GCFFile.cpp index 6ce4f80..85a9916 100644 --- a/HLLib/GCFFile.cpp +++ b/HLLib/GCFFile.cpp @@ -789,6 +789,8 @@ hlBool CGCFFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage } return hlTrue; } + default: + break; } break; } @@ -819,9 +821,13 @@ hlBool CGCFFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage } return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse; diff --git a/HLLib/HLLib.cpp b/HLLib/HLLib.cpp index cd44f47..525e34e 100644 --- a/HLLib/HLLib.cpp +++ b/HLLib/HLLib.cpp @@ -153,6 +153,8 @@ HLLIB_API hlBool hlGetBooleanValidate(HLOption eOption, hlBool *pValue) case HL_PACKAGE_BOUND: *pValue = pPackage != 0; return hlTrue; + default: + break; } return hlFalse; @@ -171,6 +173,8 @@ HLLIB_API hlVoid hlSetBoolean(HLOption eOption, hlBool bValue) case HL_FORCE_DEFRAGMENT: bForceDefragment = bValue; break; + default: + break; } } @@ -533,6 +537,8 @@ HLLIB_API hlVoid hlSetVoid(HLOption eOption, const hlVoid *pValue) case HL_PROC_DEFRAGMENT_PROGRESS_EX: pDefragmentProgressExProc = (PDefragmentProgressExProc)pValue; break; + default: + break; } } diff --git a/HLLib/NCFFile.cpp b/HLLib/NCFFile.cpp index 482108d..d7741c9 100644 --- a/HLLib/NCFFile.cpp +++ b/HLLib/NCFFile.cpp @@ -347,6 +347,8 @@ hlBool CNCFFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], this->lpDirectoryEntries[pFile->GetID()].uiDirectoryFlags, hlTrue); return hlTrue; } + default: + break; } break; } @@ -360,9 +362,13 @@ hlBool CNCFFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], this->lpDirectoryEntries[pFolder->GetID()].uiDirectoryFlags, hlTrue); return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse; diff --git a/HLLib/VBSPFile.cpp b/HLLib/VBSPFile.cpp index 6fe4b91..3d7ee03 100644 --- a/HLLib/VBSPFile.cpp +++ b/HLLib/VBSPFile.cpp @@ -422,6 +422,8 @@ hlBool CVBSPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackag delete []lpComment; return hlTrue; } + default: + break; } } else @@ -444,6 +446,8 @@ hlBool CVBSPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackag hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], *(hlUInt *)this->pHeader->lpLumps[uiID].lpFourCC, hlTrue); return hlTrue; } + default: + break; } if(this->pEndOfCentralDirectoryRecord != 0 && pItem->GetID() == HL_VBSP_LUMP_PAKFILE) @@ -466,11 +470,15 @@ hlBool CVBSPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackag delete []lpComment; return hlTrue; } + default: + break; } } } break; } + default: + break; } return hlFalse; diff --git a/HLLib/VPKFile.cpp b/HLLib/VPKFile.cpp index 93a6457..3d11785 100644 --- a/HLLib/VPKFile.cpp +++ b/HLLib/VPKFile.cpp @@ -405,9 +405,13 @@ hlBool CVPKFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], pDirectoryItem->pDirectoryEntry->uiCRC, hlTrue); return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse; diff --git a/HLLib/WADFile.cpp b/HLLib/WADFile.cpp index 2fd41e1..43ca298 100644 --- a/HLLib/WADFile.cpp +++ b/HLLib/WADFile.cpp @@ -200,9 +200,13 @@ hlBool CWADFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], (hlUInt)pLump->iType, hlTrue); return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse; diff --git a/HLLib/XZPFile.cpp b/HLLib/XZPFile.cpp index c8cd509..d9fea67 100644 --- a/HLLib/XZPFile.cpp +++ b/HLLib/XZPFile.cpp @@ -299,9 +299,13 @@ hlBool CXZPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage hlAttributeSetUnsignedInteger(&Attribute, this->lpItemAttributeNames[eAttribute], uiSize, hlFalse); return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse; diff --git a/HLLib/ZIPFile.cpp b/HLLib/ZIPFile.cpp index 2f068f2..f7a2dd0 100644 --- a/HLLib/ZIPFile.cpp +++ b/HLLib/ZIPFile.cpp @@ -330,9 +330,13 @@ hlBool CZIPFile::GetItemAttributeInternal(const CDirectoryItem *pItem, HLPackage delete []lpComment; return hlTrue; } + default: + break; } break; } + default: + break; } return hlFalse;