Skip to content

Commit 04a9ae7

Browse files
author
Artyom Abakumov
committed
Resolve code style issues
1 parent 18b1ce7 commit 04a9ae7

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/dsql/DsqlCompilerScratch.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -341,21 +341,23 @@ void DsqlCompilerScratch::putFieldName(const TypeClause& type, const bool useExp
341341
UCHAR name3;
342342
};
343343

344-
static constexpr BlrNameSet BLR_COLUMN_SET{
344+
static constexpr BlrNameSet BLR_COLUMN_SET
345+
{
345346
blr_column_name,
346347
blr_column_name2,
347348
blr_column_name3,
348349
};
349350

350-
static constexpr BlrNameSet BLR_DOMAIN_SET{
351+
static constexpr BlrNameSet BLR_DOMAIN_SET
352+
{
351353
blr_domain_name,
352354
blr_domain_name2,
353355
blr_domain_name3,
354356
};
355357

356358
constexpr BlrNameSet blrSet = []()
357359
{
358-
if constexpr(THasTableName)
360+
if constexpr (THasTableName)
359361
return BLR_COLUMN_SET;
360362
else
361363
return BLR_DOMAIN_SET;
@@ -378,9 +380,7 @@ void DsqlCompilerScratch::putFieldName(const TypeClause& type, const bool useExp
378380
appendMetaString(type.typeOfTable.object.c_str());
379381
}
380382
else
381-
{
382383
appendMetaString(type.typeOfName.schema.c_str());
383-
}
384384

385385
appendMetaString(type.typeOfName.object.c_str());
386386

@@ -390,9 +390,7 @@ void DsqlCompilerScratch::putFieldName(const TypeClause& type, const bool useExp
390390
appendUShort(type.textType);
391391
}
392392
else
393-
{
394393
appendUChar(0);
395-
}
396394
}
397395
else
398396
{
@@ -402,16 +400,12 @@ void DsqlCompilerScratch::putFieldName(const TypeClause& type, const bool useExp
402400
appendUChar(domainBlr);
403401

404402
if constexpr (THasTableName)
405-
{
406403
appendMetaString(type.typeOfTable.object.c_str());
407-
}
408404

409405
appendMetaString(type.typeOfName.object.c_str());
410406

411407
if (useExplicitCollate)
412-
{
413408
appendUShort(type.textType);
414-
}
415409
}
416410
}
417411

0 commit comments

Comments
 (0)