Skip to content

Commit 49b393a

Browse files
author
Michael Blome
committed
more atl syntax fixes
1 parent 68f17fa commit 49b393a

File tree

95 files changed

+281
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+281
-537
lines changed

docs/atl-mfc-shared/reference/cfixedstringt-class.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ This class represents a string object with a fixed character buffer.
4141
## Syntax
4242

4343
```
44-
template<class
45-
StringType,
46-
int
47-
t_nChars>
44+
template<class StringType, int t_nChars>
4845
class CFixedStringT : private CFixedStringMgr,
49-
public StringType
46+
public StringType
5047
```
5148

5249
#### Parameters

docs/atl-mfc-shared/reference/coledatetime-class.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ COleDateTime& operator-=(COleDateTimeSpan dateSpan) throw();
854854
## <a name="operator_date"></a> COleDateTime::operator DATE
855855
Converts a **ColeDateTime** value into a **DATE**.
856856

857-
```operator DATE() const throw();
857+
```
858+
operator DATE() const throw();
858859
```
859860

860861
### Remarks

docs/atl-mfc-shared/reference/coledatetimespan-class.md

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,8 @@ bool operator>=(const COleDateTimeSpan& dateSpan) const throw();
143143

144144
```
145145
COleDateTimeSpan() throw();
146-
147-
COleDateTimeSpan(
148-
double dblSpanSrc) throw();
149-
150-
COleDateTimeSpan(
151-
LONG
152-
lDays,
153-
int
154-
nHours,
155-
int
156-
nMins,
157-
int
158-
nSecs) throw();
146+
COleDateTimeSpan(double dblSpanSrc) throw();
147+
COleDateTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw();
159148
```
160149

161150
### Parameters
@@ -185,9 +174,8 @@ nSecs) throw();
185174
Generates a formatted string representation of a `COleDateTimeSpan` object.
186175

187176
```
188-
CString Format(LPCTSTR pFormat) const;
189-
190-
CString Format(UINT nID) const;
177+
CString Format(LPCTSTR pFormat) const;
178+
CString Format(UINT nID) const;
191179
```
192180

193181
### Parameters
@@ -583,8 +571,7 @@ DateTimeSpanStatus m_status;
583571
Copies a `COleDateTimeSpan` value.
584572

585573
```
586-
COleDateTimeSpan& operator=(double
587-
dblSpanSrc) throw();
574+
COleDateTimeSpan& operator=(double dblSpanSrc) throw();
588575
```
589576

590577
### Remarks
@@ -594,12 +581,8 @@ dblSpanSrc) throw();
594581
Add, subtract, and change sign for `COleDateTimeSpan` values.
595582

596583
```
597-
COleDateTimeSpan operator+(const COleDateTimeSpan&
598-
dateSpan) const throw();
599-
600-
COleDateTimeSpan operator-(const COleDateTimeSpan&
601-
dateSpan) const throw();
602-
584+
COleDateTimeSpan operator+(const COleDateTimeSpan& dateSpan) const throw();
585+
COleDateTimeSpan operator-(const COleDateTimeSpan& dateSpan) const throw();
603586
COleDateTimeSpan operator-() const throw();
604587
```
605588

@@ -619,11 +602,9 @@ COleDateTimeSpan operator-() const throw();
619602
Add and subtract a `COleDateTimeSpan` value from this `COleDateTimeSpan` value.
620603

621604
```
622-
COleDateTimeSpan& operator+=(const COleDateTimeSpan
623-
dateSpan) throw();
605+
COleDateTimeSpan& operator+=(const COleDateTimeSpan dateSpan) throw();
624606
625-
COleDateTimeSpan& operator-=(const COleDateTimeSpan
626-
dateSpan) throw();
607+
COleDateTimeSpan& operator-=(const COleDateTimeSpan dateSpan) throw();
627608
```
628609

629610
### Remarks
@@ -639,7 +620,8 @@ dateSpan) throw();
639620
## <a name="operator_double"></a> COleDateTimeSpan::operator double
640621
Converts this `COleDateTimeSpan` value to a **double**.
641622

642-
```operator double() const throw();
623+
```
624+
operator double() const throw();
643625
```
644626

645627
### Remarks
@@ -649,15 +631,7 @@ dateSpan) throw();
649631
Sets the value of this date/time-span value.
650632

651633
```
652-
void SetDateTimeSpan(
653-
LONG
654-
lDays,
655-
int
656-
nHours,
657-
int
658-
nMins,
659-
int
660-
nSecs) throw();
634+
void SetDateTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw();
661635
```
662636

663637
### Parameters
@@ -690,7 +664,7 @@ nSecs) throw();
690664
Sets the status (validity) of this `COleDateTimeSpan` object.
691665

692666
```
693-
void SetStatus(DateTimeSpanStatus status) throw();
667+
void SetStatus(DateTimeSpanStatus status) throw();
694668
```
695669

696670
### Parameters

docs/atl-mfc-shared/reference/csimplestringt-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ Joins a new string or character to the end of an existing string.
753753
```
754754
CSimpleStringT& operator +=(PCXSTR pszSrc);
755755
CSimpleStringT& operator +=(const CSimpleStringT& strSrc);
756-
template< int t_nSize >
756+
template<int t_nSize>
757757
CSimpleStringT& operator+=(const CStaticString< XCHAR, t_nSize >& strSrc);
758758
CSimpleStringT& operator +=(char ch);
759759
CSimpleStringT& operator +=(unsigned char ch);

docs/atl-mfc-shared/reference/cstrbuft-class.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ This class provides automatic resource cleanup for `GetBuffer` and `ReleaseBuffe
4747

4848
```
4949
template<typename TCharType>
50-
class CStrBufT```
50+
class CStrBufT
51+
```
5152

5253
#### Parameters
5354
*TCharType*
@@ -146,7 +147,8 @@ explicit CStrBufT(StringType& str) throw(...);
146147
## <a name="operator_pcxstr"></a> CStrBufT::operator PCXSTR
147148
Directly accesses characters stored in the associated string object as a C-style string.
148149

149-
```operator PCXSTR() const throw();
150+
```
151+
operator PCXSTR() const throw();
150152
```
151153

152154
### Return Value
@@ -158,7 +160,8 @@ explicit CStrBufT(StringType& str) throw(...);
158160
## <a name="operator_pxstr"></a> CStrBufT::operator PXSTR
159161
Directly accesses characters stored in the associated string object as a C-style string.
160162

161-
```operator PXSTR() throw();
163+
```
164+
operator PXSTR() throw();
162165
```
163166

164167
### Return Value

docs/atl-mfc-shared/reference/cstringt-class.md

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@ This class represents a `CStringT` object.
4646

4747
```
4848
49-
template<typename
50-
BaseType , class
51-
StringTraits>
52-
class CStringT :
53-
public CSimpleStringT<
54-
BaseType, _CSTRING_IMPL_::_MFCDLLTraitsCheck<BaseType, StringTraits> ::c_bIsMFCDLLTraits>
55-
49+
template<typename BaseType, class StringTraits>
50+
class CStringT
51+
: public CSimpleStringT<BaseType,
52+
_CSTRING_IMPL_::_MFCDLLTraitsCheck<BaseType,
53+
StringTraits>::c_bIsMFCDLLTraits>
5654
```
5755

5856
#### Parameters
@@ -1079,39 +1077,18 @@ friend CStringT operator+(
10791077
## <a name="operator_add_eq"></a> CStringT::operator +=
10801078
Concatenates characters to the end of the string.
10811079

1082-
```
1083-
CStringT& operator+=(
1084-
const CThisSimpleString& str);
1085-
1086-
template<
1087-
bool bMFCDLL
1088-
>
1089-
CStringT& operator+=(
1090-
const const CSimpleStringT<BaseType, bMFCDLL>& str);
1091-
1092-
template<
1093-
int t_nSize
1094-
>
1095-
CStringT& operator+=(
1096-
const CStaticString<XCHAR, t_nSize>& strSrc);
1097-
1098-
CStringT& operator+=(
1099-
PCXSTR pszSrc);
1100-
1101-
CStringT& operator+=(
1102-
PCYSTR pszSrc);
1103-
1104-
CStringT& operator+=(
1105-
char ch);
1106-
1107-
CStringT& operator+=(
1108-
unsigned char ch);
1109-
1110-
CStringT& operator+=(
1111-
wchar_t ch);
1112-
1113-
CStringT& operator+=(
1114-
const VARIANT& var);
1080+
```
1081+
CStringT& operator+=(const CThisSimpleString& str);
1082+
template<bool bMFCDLL>
1083+
CStringT& operator+=(const const CSimpleStringT<BaseType, bMFCDLL>& str);
1084+
template<int t_nSize>
1085+
CStringT& operator+=(const CStaticString<XCHAR, t_nSize>& strSrc);
1086+
CStringT& operator+=(PCXSTR pszSrc);
1087+
CStringT& operator+=(PCYSTR pszSrc);
1088+
CStringT& operator+=(char ch);
1089+
CStringT& operator+=(unsigned char ch);
1090+
CStringT& operator+=(wchar_t ch);
1091+
CStringT& operator+=(const VARIANT& var);
11151092
```
11161093

11171094
### Parameters

docs/atl/reference/atl-path-functions.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,11 @@ This function is an overloaded wrapper for [PathCombine](https://msdn.microsoft.
158158

159159
### Syntax
160160
```
161-
inline char* Combine(
162-
char* pszDest,
161+
inline char* Combine(char* pszDest,
163162
const char* pszDir,
164163
const char* pszFile
165164
);
166-
inline wchar_t* Combine(
167-
wchar_t* pszDest,
165+
inline wchar_t* Combine(wchar_t* pszDest,
168166
const wchar_t* pszDir,
169167
const wchar_t* pszFile
170168
);
@@ -179,8 +177,7 @@ See PathCombine for details.
179177
### Syntax
180178

181179
```
182-
inline int CommonPrefix(
183-
const char* pszFile1,
180+
inline int CommonPrefix(const char* pszFile1,
184181
const char* pszFile2,
185182
char* pszDest);
186183
@@ -312,11 +309,9 @@ inline int GetDriveNumber(const wchar_t* pszPath);
312309
This function is an overloaded wrapper for [PathIsDirectory](https://msdn.microsoft.com/en-us/library/windows/desktop/bb773621).
313310

314311
```
315-
inline BOOL IsDirectory(
316-
const char* pszPath
312+
inline BOOL IsDirectory(const char* pszPath
317313
);
318-
inline BOOL IsDirectory(
319-
const wchar_t* pszPath
314+
inline BOOL IsDirectory(const wchar_t* pszPath
320315
);
321316
```
322317
### Remarks

docs/atl/reference/atl-text-encoding-functions.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ Call this function to get the size in characters of a buffer that could contain
286286
### Syntax
287287

288288
```
289-
inline int BEncodeGetRequiredLength(
290-
int nSrcLen,
291-
int nCharsetLen) throw();
289+
inline int BEncodeGetRequiredLength( int nSrcLen, int nCharsetLen) throw();
292290
```
293291

294292
### Parameters
@@ -444,9 +442,7 @@ Call this function to get the size in characters of a buffer that could contain
444442
### Syntax
445443

446444
```
447-
inline int QEncodeGetRequiredLength(
448-
int nSrcLen,
449-
int nCharsetLen) throw();
445+
inline int QEncodeGetRequiredLength( int nSrcLen, int nCharsetLen) throw();
450446
```
451447

452448
### Parameters

docs/atl/reference/ca2aex-class.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,9 @@ class CA2AEX
109109
The constructor.
110110

111111
```
112-
CA2AEX(
113-
LPCSTR psz,
114-
UINT nCodePage) throw(...);
112+
CA2AEX(LPCSTR psz, UINT nCodePage) throw(...);
115113
116-
CA2AEX(
117-
LPCSTR psz) throw(...);
114+
CA2AEX( LPCSTR psz) throw(...);
118115
```
119116

120117
### Parameters

docs/atl/reference/ca2wex-class.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,9 @@ class CA2WEX
114114
The constructor.
115115

116116
```
117-
CA2WEX(
118-
LPCSTR psz,
119-
UINT nCodePage) throw(...);
117+
CA2WEX(LPCSTR psz, UINT nCodePage) throw(...);
120118
121-
CA2WEX(
122-
LPCSTR psz) throw(...);
119+
CA2WEX( LPCSTR psz) throw(...);
123120
```
124121

125122
### Parameters

docs/atl/reference/caccesstoken-class.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ virtual ~CAccessToken() throw();
143143
Call this method to determine if a specified SID is enabled in the `CAccessToken` object.
144144

145145
```
146-
bool CheckTokenMembership(
147-
const CSid& rSid,
148-
bool* pbIsMember) const throw(...);
146+
bool CheckTokenMembership(const CSid& rSid, bool* pbIsMember) const throw(...);
149147
```
150148

151149
### Parameters
@@ -170,9 +168,7 @@ bool CheckTokenMembership(
170168
Call this method to create an impersonation access token.
171169

172170
```
173-
bool CreateImpersonationToken(
174-
CAccessToken* pImp,
175-
SECURITY_IMPERSONATION_LEVEL sil = SecurityImpersonation) const throw(...);
171+
bool CreateImpersonationToken(CAccessToken* pImp, SECURITY_IMPERSONATION_LEVEL sil = SecurityImpersonation) const throw(...);
176172
```
177173

178174
### Parameters
@@ -547,9 +543,7 @@ bool GetPrivileges(CTokenPrivileges* pPrivileges) const throw(...);
547543
Call this method to initialize the `CAccessToken` with the access token from the given process.
548544

549545
```
550-
bool GetProcessToken(
551-
DWORD dwDesiredAccess,
552-
HANDLE hProcess = NULL) throw();
546+
bool GetProcessToken(DWORD dwDesiredAccess, HANDLE hProcess = NULL) throw();
553547
```
554548

555549
### Parameters
@@ -918,9 +912,7 @@ bool OpenThreadToken(
918912
Call this method to determine whether a specified set of privileges are enabled in the **CAccessToken** object.
919913

920914
```
921-
bool PrivilegeCheck(
922-
PPRIVILEGE_SET RequiredPrivileges,
923-
bool* pbResult) const throw();
915+
bool PrivilegeCheck(PPRIVILEGE_SET RequiredPrivileges, bool* pbResult) const throw();
924916
```
925917

926918
### Parameters

docs/atl/reference/catlarray-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This class implements an array object.
4242
## Syntax
4343

4444
```
45-
template<typename E, class ETraits = CElementTraits<E>>
45+
template<typename E, class ETraits = CElementTraits<E>>
4646
class CAtlArray
4747
```
4848

0 commit comments

Comments
 (0)