File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ void DbcParser::parse_dbc_messages(const std::vector<std::string>& lines) {
181
181
continue ;
182
182
}
183
183
184
- if (std::regex_search (line, match, signal_re) && messages.size () > 0 ) {
184
+ if (std::regex_search (line, match, signal_re) && ! messages.empty () ) {
185
185
std::string name = match.str (SIGNAL_NAME_GROUP);
186
186
bool is_multiplexed = false ; // No support yet
187
187
uint32_t start_bit = static_cast <uint32_t >(std::stoul (match.str (SIGNAL_START_BIT_GROUP)));
@@ -204,7 +204,7 @@ void DbcParser::parse_dbc_messages(const std::vector<std::string>& lines) {
204
204
continue ;
205
205
}
206
206
207
- if (std::regex_search (line, match, value_re) && messages.size () > 0 ) {
207
+ if (std::regex_search (line, match, value_re) && ! messages.empty () ) {
208
208
uint32_t message_id = static_cast <uint32_t >(std::stoul (match.str (2 )));
209
209
std::string signal_name = match.str (3 );
210
210
You can’t perform that action at this time.
0 commit comments