Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiuwen-chen committed Jun 19, 2024
1 parent 180bd79 commit 67bb873
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/common/base/StringView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class WCDB_API UnsafeStringView {
};

template<typename T>
struct Convertible<T, std::enable_if_t<std::is_function<T>::value>> : public std::false_type {};
struct Convertible<T, std::enable_if_t<std::is_function<T>::value>>
: public std::false_type {
};

template<typename T, typename Enable = typename std::enable_if<Convertible<T>::value>::type>
UnsafeStringView(const T& t)
Expand Down
6 changes: 3 additions & 3 deletions src/common/core/fts/tokenizer/TokenizerModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ namespace WCDB {
#endif

#pragma mark - AbstractFTS5Tokenizer
AbstractFTSTokenizer::AbstractFTSTokenizer(const char *const *azArg, int nArg, void *pCtx){
AbstractFTSTokenizer::AbstractFTSTokenizer(const char *const *azArg, int nArg, void *pCtx)
{
WCDB_UNUSED(pCtx);
WCDB_UNUSED(azArg);
WCDB_UNUSED(nArg);
}

AbstractFTSTokenizer::~AbstractFTSTokenizer()
= default;
AbstractFTSTokenizer::~AbstractFTSTokenizer() = default;

struct FTS3TokenizerWrap {
sqlite3_tokenizer base;
Expand Down
2 changes: 1 addition & 1 deletion src/common/utility/Macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
#if !defined(_WIN32)
#define WCDB_UNUSED(variable) _Pragma(WCDB_STRINGIFY(unused(variable)))
#else
#define WCDB_UNUSED(variable) (void)(variable)
#define WCDB_UNUSED(variable) (void) (variable)
#endif

#ifdef __clang__
Expand Down
4 changes: 3 additions & 1 deletion src/common/winq/extension/ColumnType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ struct WCDB_API ColumnIsTextType<StringView> : public std::true_type {
};

template<typename T>
struct ColumnIsTextType<T, std::enable_if_t<std::is_function<T>::value>> : public std::false_type {};
struct ColumnIsTextType<T, std::enable_if_t<std::is_function<T>::value>>
: public std::false_type {
};

//BLOB
template<>
Expand Down

0 comments on commit 67bb873

Please sign in to comment.