diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-05-19 20:17:33 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-05-19 20:17:33 +0400 |
commit | 62027be3b2b59998a50b50d7be184676f2a90f15 (patch) | |
tree | 16ec7654489faaacf8a5a38934f3e1abcf4b172e /src/filters/source/ShoutcastSource | |
parent | 0aeeed3651f2c235b64b0cdbd3e5a27143208d11 (diff) |
Use Microsoft's _countof macro when it exists since its C++ implementation is safer than just doing sizeof(array)/sizeof(array[0])
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4801 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/source/ShoutcastSource')
-rw-r--r-- | src/filters/source/ShoutcastSource/ShoutcastSource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp index 7b7115ec9..1aafc2fe7 100644 --- a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp +++ b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp @@ -86,18 +86,18 @@ const AMOVIESETUP_MEDIATYPE sudPinTypesOut[] = { };
const AMOVIESETUP_PIN sudOpPin[] = {
- {L"Output", FALSE, TRUE, FALSE, FALSE, &CLSID_NULL, NULL, countof(sudPinTypesOut), sudPinTypesOut}
+ {L"Output", FALSE, TRUE, FALSE, FALSE, &CLSID_NULL, NULL, _countof(sudPinTypesOut), sudPinTypesOut}
};
const AMOVIESETUP_FILTER sudFilter[] = {
- {&__uuidof(CShoutcastSource), ShoutcastSourceName, MERIT_NORMAL, countof(sudOpPin), sudOpPin, CLSID_LegacyAmFilterCategory}
+ {&__uuidof(CShoutcastSource), ShoutcastSourceName, MERIT_NORMAL, _countof(sudOpPin), sudOpPin, CLSID_LegacyAmFilterCategory}
};
CFactoryTemplate g_Templates[] = {
{sudFilter[0].strName, sudFilter[0].clsID, CreateInstance<CShoutcastSource>, NULL, &sudFilter[0]}
};
-int g_cTemplates = countof(g_Templates);
+int g_cTemplates = _countof(g_Templates);
STDAPI DllRegisterServer()
{
|