Skip to content

Commit 8911f00

Browse files
fix(ofFilesystemPath): remove unused mbstate var
1 parent 87d8239 commit 8911f00

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libs/openFrameworks/utils/ofFilesystemPath.h

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class path {
6767
// TODO better (ideal) impl this just copy-pasted for proof of concept
6868
mutable std::string cached_narrow_str_;
6969
const char* to_narrow_cstr() const {
70-
std::mbstate_t state = std::mbstate_t();
7170
size_t size_needed = std::wcstombs(nullptr, wstring().c_str(), 0) + 1;
7271
if (size_needed == static_cast<size_t>(-1)) {
7372
throw std::runtime_error("Conversion error from wstring to string");

0 commit comments

Comments
 (0)