FT field_type changed to const FT & field_type in functions arguments

This commit is contained in:
2021-05-12 04:53:23 +02:00
parent c7797ff2f1
commit aadc5be350
14 changed files with 235 additions and 235 deletions

View File

@@ -63,7 +63,7 @@ public:
virtual DbExpression & page(PT::TextStream & stream, size_t page_number, size_t page_size);
template<typename FieldValue>
void add_field_for_select(const wchar_t * new_column_expression, const wchar_t * new_column_name, FieldValue & field_value, FT field_type, ModelEnv * model_env)
void add_field_for_select(const wchar_t * new_column_expression, const wchar_t * new_column_name, FieldValue & field_value, const FT & field_type, ModelEnv * model_env)
{
std::wstring column_expression; // field() methods can be called recursively, so don't make it as class object
@@ -81,15 +81,15 @@ protected:
int output_type;
std::vector<int> conjunctions;
bool can_field_be_generated(FT field_type);
bool can_field_be_generated(const FT & field_type);
void field_before();
void put_name_value_separator();
private:
void before_field_value_string(FT field_type);
void after_field_value_string(FT field_type);
void before_field_value_string(const FT & field_type);
void after_field_value_string(const FT & field_type);
};