@@ -109,31 +109,31 @@ bool AuditLog::setStatus(AuditLogStatus status) {
109
109
}
110
110
111
111
112
- bool AuditLog::setRelevantStatus (const std::basic_string< char >& status) {
112
+ bool AuditLog::setRelevantStatus (std::string_view status) {
113
113
this ->m_relevant = std::string (status);
114
114
return true ;
115
115
}
116
116
117
117
118
- bool AuditLog::setStorageDir (const std::basic_string< char >& path) {
118
+ bool AuditLog::setStorageDir (std::string_view path) {
119
119
this ->m_storage_dir = path;
120
120
return true ;
121
121
}
122
122
123
123
124
- bool AuditLog::setFilePath1 (const std::basic_string< char >& path) {
124
+ bool AuditLog::setFilePath1 (std::string_view path) {
125
125
this ->m_path1 = path;
126
126
return true ;
127
127
}
128
128
129
129
130
- bool AuditLog::setFilePath2 (const std::basic_string< char >& path) {
130
+ bool AuditLog::setFilePath2 (std::string_view path) {
131
131
this ->m_path2 = path;
132
132
return true ;
133
133
}
134
134
135
135
136
- bool AuditLog::setHeader (const std::basic_string< char >& header) {
136
+ bool AuditLog::setHeader (std::string_view header) {
137
137
this ->m_header = header;
138
138
return true ;
139
139
}
@@ -144,7 +144,7 @@ bool AuditLog::setFormat(AuditLogFormat fmt) {
144
144
return true ;
145
145
}
146
146
147
- int AuditLog::addParts (int parts, const std::string& new_parts) {
147
+ int AuditLog::addParts (int parts, std::string_view new_parts) {
148
148
PARTS_CONSTAINS (' A' , AAuditLogPart)
149
149
PARTS_CONSTAINS (' B' , BAuditLogPart)
150
150
PARTS_CONSTAINS (' C' , CAuditLogPart)
@@ -162,7 +162,7 @@ int AuditLog::addParts(int parts, const std::string& new_parts) {
162
162
}
163
163
164
164
165
- int AuditLog::removeParts (int parts, const std::string& new_parts) {
165
+ int AuditLog::removeParts (int parts, std::string_view new_parts) {
166
166
PARTS_CONSTAINS_REM (' A' , AAuditLogPart)
167
167
PARTS_CONSTAINS_REM (' B' , BAuditLogPart)
168
168
PARTS_CONSTAINS_REM (' C' , CAuditLogPart)
@@ -180,7 +180,7 @@ int AuditLog::removeParts(int parts, const std::string& new_parts) {
180
180
}
181
181
182
182
183
- bool AuditLog::setParts (const std::basic_string< char >& new_parts) {
183
+ bool AuditLog::setParts (std::string_view new_parts) {
184
184
int parts = 0 ;
185
185
186
186
PARTS_CONSTAINS (' A' , AAuditLogPart)
0 commit comments