Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/cppcore/Common/TBitField.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class TBitField {

/// @brief The class constructor with the initial value.
/// @param[in] init The init value.
TBitField(T init);
explicit TBitField(T init);

/// @brief The class destructor.
~TBitField() = default;
Expand Down
2 changes: 1 addition & 1 deletion include/cppcore/Common/TOptional.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TOptional {
public:
/// @brief The class constructor.
/// @param[in] defaultValue Init value if no set was performed.
TOptional(T defaultValue);
explicit TOptional(T defaultValue);

/// @brief The class destructor.
~TOptional() = default;
Expand Down
5 changes: 4 additions & 1 deletion include/cppcore/Common/TStringBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ inline size_t TStringBase<T>::size() const {

template <class T>
inline bool TStringBase<T>::isEmpty() const {
return (mSize == 0);
return mSize == 0;
}

template <class T>
Expand Down Expand Up @@ -219,6 +219,9 @@ inline TStringBase<T>& TStringBase<T>::operator+=(char c) {

template <class T>
inline T TStringBase<T>::operator[](size_t index) const {
if (index >= mSize) {
return 0;
}
return mBuffer[index];
}

Expand Down