File tree 1 file changed +3
-8
lines changed 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -138,18 +138,13 @@ void cv::viz::VizStorage::removeUnreferenced()
138
138
139
139
cv::String cv::viz::VizStorage::generateWindowName (const String &window_name)
140
140
{
141
- String output = " Viz" ;
142
- // Already is Viz
143
- if (window_name == output)
144
- return output;
141
+ cv::String output = " Viz" ;
145
142
146
- String prefixed = output + " - " ;
143
+ cv:: String prefixed = output + " - " ;
147
144
if (window_name.substr (0 , prefixed.length ()) == prefixed)
148
145
output = window_name; // Already has "Viz - "
149
- else if (window_name.substr (0 , output.length ()) == output)
150
- output = prefixed + window_name; // Doesn't have prefix
151
146
else
152
- output = (window_name == " " ? output : prefixed + window_name);
147
+ output = prefixed + window_name; // Doesn't have prefix
153
148
154
149
return output;
155
150
}
You can’t perform that action at this time.
0 commit comments