History

Use the C++ constants true/false instead of defining our own

TRUE/FALSE has intentionally been left in use for the few platform specific APIs that define these constants themselves and expect them to be used, for consistency.

Martin Storsjö committed 12 years ago

Commit 80862ee1 parent f2bd22a22 files · +123 −136Browse files

Showing the changes to codec/processing/src (3 of 22 files). Show all

Unified · Split

3 files
  1. codec/processing/src/common/WelsFrameWork.cpp +2 −2
  2. codec/processing/src/common/WelsFrameWork.h +1 −1
  3. codec/processing/src/common/typedef.h +0 −5
codec/processing/src/common/WelsFrameWork.cpp+2−2
@@ -221,7 +221,7 @@ EResult CVpFrameWork::SpecialFeature (int32_t iType, void* pIn, void* pOut) { · 220 unmodified lines
221221 }
222222
223223 bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& pDstPixMap) {
224− bool eReturn = FALSE;
224+ bool eReturn = false;
225225
226226 if (eMethod == METHOD_NULL)
227227 goto exit;
@@ -253,7 +253,7 @@ bool CVpFrameWork::CheckValid (EMethods eMethod, SPixMap& pSrcPixMap, SPixMap& · 25 unmodified lines
253253 || pDstPixMap.sRect.iRectLeft >= pDstPixMap.sRect.iRectWidth || pDstPixMap.sRect.iRectWidth > pDstPixMap.iStride[0])
254254 goto exit;
255255 }
256− eReturn = TRUE;
256+ eReturn = true;
257257
258258 exit:
259259 return eReturn;
codec/processing/src/common/WelsFrameWork.h+1−1
@@ -62,7 +62,7 @@ class IStrategy : public IWelsVP { · 61 unmodified lines
6262 m_eMethod = METHOD_NULL;
6363 m_eFormat = VIDEO_FORMAT_I420;
6464 m_iIndex = 0;
65− m_bInit = FALSE;
65+ m_bInit = false;
6666 };
6767
6868 virtual ~IStrategy() {}
codec/processing/src/common/typedef.h+0−5
@@ -73,11 +73,6 @@ typedef unsigned __int64 uint64_t ; · 72 unmodified lines
7373
7474 #endif
7575
76−enum {
77− FALSE = 0,
78− TRUE = !FALSE
79−};
80−
8176 WELSVP_NAMESPACE_END
8277
8378 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t