Skip to content

Commit 8faf3d1

Browse files
author
Owen Jones
committed
Use string.empty() instead of == ""
1 parent b697901 commit 8faf3d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/pointer-analysis/local_value_set.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,7 @@ void local_value_sett::assign_rec(
463463
declared_on_type,
464464
suffix_without_subtype);
465465
std::string access_path_suffix=
466-
suffix_without_subtype == "" ?
467-
"[]" :
468-
suffix_without_subtype;
466+
suffix_without_subtype.empty() ? "[]" : suffix_without_subtype;
469467
access_path_entry_exprt newentry(
470468
access_path_suffix,
471469
function,

0 commit comments

Comments
 (0)