Skip to content

Commit

Permalink
avoid using sstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schuerman authored and jcelerier committed Jul 10, 2023
1 parent 1f9b7f7 commit 2c9c93d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/libremidi/detail/winmm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ inline void MakeUniqueInPortName(std::string& deviceName, unsigned int portNumbe
x++;
}
}
std::ostringstream os;
os << " " << x;
deviceName += os.str();
deviceName += " ";
deviceName += std::to_string(x);
}

inline void MakeUniqueOutPortName(std::string& deviceName, unsigned int portNumber)
Expand All @@ -118,9 +117,8 @@ inline void MakeUniqueOutPortName(std::string& deviceName, unsigned int portNumb
x++;
}
}
std::ostringstream os;
os << " " << x;
deviceName += os.str();
deviceName += " ";
deviceName += std::to_string(x);
}

class observer_winmm final : public observer_api
Expand Down

0 comments on commit 2c9c93d

Please sign in to comment.