diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-05-11 11:51:27 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-05-11 11:51:27 +0400 |
commit | f70011e77e6970e05e7526212c99eb008c47e252 (patch) | |
tree | c2746c184ba16f634f5d1c267de6a00682057a33 /src/DSUtil/DSUtil.h | |
parent | 1467166ca1ded7df5aa92964692a4d757bac06e0 (diff) |
DSUtil: keep one line statements
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4686 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/DSUtil.h')
-rw-r--r-- | src/DSUtil/DSUtil.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/DSUtil/DSUtil.h b/src/DSUtil/DSUtil.h index bbea07d48..772e3e13f 100644 --- a/src/DSUtil/DSUtil.h +++ b/src/DSUtil/DSUtil.h @@ -141,27 +141,15 @@ typedef enum { class CPinInfo : public PIN_INFO
{
public:
- CPinInfo() {
- pFilter = NULL;
- }
- ~CPinInfo() {
- if (pFilter) {
- pFilter->Release();
- }
- }
+ CPinInfo() { pFilter = NULL; }
+ ~CPinInfo() { if (pFilter) { pFilter->Release(); } }
};
class CFilterInfo : public FILTER_INFO
{
public:
- CFilterInfo() {
- pGraph = NULL;
- }
- ~CFilterInfo() {
- if (pGraph) {
- pGraph->Release();
- }
- }
+ CFilterInfo() { pGraph = NULL; }
+ ~CFilterInfo() { if (pGraph) { pGraph->Release(); } }
};
#define BeginEnumFilters(pFilterGraph, pEnumFilters, pBaseFilter) \
|