mirror of
https://github.com/polybar/polybar.git
synced 2026-03-30 03:56:22 +00:00
fix(string_util): Type error
This commit is contained in:
@ -56,7 +56,7 @@ namespace string_util {
|
||||
*/
|
||||
inline auto replace_all(const string& haystack, string needle, string replacement) {
|
||||
string replaced;
|
||||
for (int i = 0; i < haystack.length(); i++) {
|
||||
for (size_t i = 0; i < haystack.length(); i++) {
|
||||
if (haystack.compare(i, needle.length(), needle) == 0) {
|
||||
replaced += replacement;
|
||||
i += needle.length()-1;
|
||||
|
||||
Reference in New Issue
Block a user