File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ class TStringBase {
41
41
TStringBase () noexcept = default ;
42
42
43
43
// / @brief The class constructor with a pointer showing to the data buffer.
44
- // / @param pPtr [in] The data buffer.
45
- TStringBase (const T *pPtr, size_t size);
44
+ // / @param[in] ptr The data buffer.
45
+ // / @param[in] size The buffer size.
46
+ TStringBase (const T *ptr, size_t size);
46
47
47
48
// / @brief The class destructor.
48
49
~TStringBase ();
@@ -95,9 +96,9 @@ class TStringBase {
95
96
};
96
97
97
98
template <class T >
98
- inline TStringBase<T>::TStringBase(const T *pPtr , size_t size) {
99
- copyFrom (*this , pPtr , size);
100
- mHashId = THash<HashId>::toHash (pPtr, mSize );
99
+ inline TStringBase<T>::TStringBase(const T *ptr , size_t size) {
100
+ copyFrom (*this , ptr , size);
101
+ mHashId = THash<HashId>::toHash (c_str (), size () );
101
102
}
102
103
103
104
template <class T >
@@ -126,7 +127,7 @@ inline size_t TStringBase<T>::size() const {
126
127
127
128
template <class T >
128
129
inline bool TStringBase<T>::isEmpty() const {
129
- return mSize == 0 ;
130
+ return ( mSize == 0 ) ;
130
131
}
131
132
132
133
template <class T >
You can’t perform that action at this time.
0 commit comments