Skip to content

Commit 0d26f36

Browse files
Gazizonokistanislav-shchetinin
authored andcommitted
Small refactor yql_issue (#276)
1 parent ed7d3e0 commit 0d26f36

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/ydb-cpp-sdk/client/federated_topic/federated_topic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ struct TFederatedReadSessionSettings: public NTopic::TReadSessionSettings {
325325

326326
//! Data size limit for the DataReceivedHandler handler.
327327
//! The data size may exceed this limit.
328-
FLUENT_SETTING_DEFAULT(size_t, MaxMessagesBytes, Max<size_t>());
328+
FLUENT_SETTING_DEFAULT(size_t, MaxMessagesBytes, std::numeric_limits<size_t>::max());
329329

330330
//! Function to handle data events.
331331
//! If this handler is set, data events will be handled by handler,

include/ydb-cpp-sdk/library/yql/public/issue/yql_issue.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ void SanitizeNonAscii(std::string& s);
2323
// TPosition
2424
///////////////////////////////////////////////////////////////////////////////
2525
struct TPosition {
26-
ui32 Column = 0U;
27-
ui32 Row = 0U;
26+
uint32_t Column = 0U;
27+
uint32_t Row = 0U;
2828
std::string File;
2929

3030
TPosition() = default;
3131

32-
TPosition(ui32 column, ui32 row, const std::string& file = {})
32+
TPosition(uint32_t column, uint32_t row, const std::string& file = {})
3333
: Column(column)
3434
, Row(row)
3535
, File(file)
@@ -76,7 +76,7 @@ class TTextWalker {
7676
private:
7777
TPosition& Position;
7878
bool HaveCr;
79-
ui32 LfCount;
79+
uint32_t LfCount;
8080
};
8181

8282
struct TRange {
@@ -189,7 +189,7 @@ class TIssue: public TThrRefBase {
189189
}
190190

191191
TIssue& AddSubIssue(TIntrusivePtr<TIssue> issue) {
192-
Severity = (ESeverity)Min((ui32)issue->GetSeverity(), (ui32)Severity);
192+
Severity = (ESeverity)std::min((uint32_t)issue->GetSeverity(), (uint32_t)Severity);
193193
Children_.push_back(issue);
194194
return *this;
195195
}
@@ -221,7 +221,7 @@ class TIssue: public TThrRefBase {
221221
}
222222
};
223223

224-
void WalkThroughIssues(const TIssue& topIssue, bool leafOnly, std::function<void(const TIssue&, ui16 level)> fn, std::function<void(const TIssue&, ui16 level)> afterChildrenFn = {});
224+
void WalkThroughIssues(const TIssue& topIssue, bool leafOnly, std::function<void(const TIssue&, uint16_t level)> fn, std::function<void(const TIssue&, uint16_t level)> afterChildrenFn = {});
225225

226226
///////////////////////////////////////////////////////////////////////////////
227227
// TIssues

0 commit comments

Comments
 (0)