projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove all use of stringstream in an attempt to fix
[dcpomatic.git]
/
src
/
tools
/
dcpomatic.cc
diff --git
a/src/tools/dcpomatic.cc
b/src/tools/dcpomatic.cc
index cd827016d6bd1f710a18e0268185f24d04a2c348..7c7b39b0423616674b1439f67fe61013d9fd0ef6 100644
(file)
--- a/
src/tools/dcpomatic.cc
+++ b/
src/tools/dcpomatic.cc
@@
-75,6
+75,7
@@
#include <boost/noncopyable.hpp>
#include <iostream>
#include <fstream>
#include <boost/noncopyable.hpp>
#include <iostream>
#include <fstream>
+/* This is OK as it's only used with DCPOMATIC_WINDOWS */
#include <sstream>
#ifdef check
#include <sstream>
#ifdef check
@@
-900,12
+901,13
@@
private:
}
for (size_t i = 0; i < history.size(); ++i) {
}
for (size_t i = 0; i < history.size(); ++i) {
-
locked_stringstream
s;
+
string
s;
if (i < 9) {
if (i < 9) {
- s << "&" << (i + 1) << " ";
+ s = String::compose ("&%1 %2", i + 1, history[i].string());
+ } else {
+ s = history[i].string();
}
}
- s << history[i].string();
- _file_menu->Insert (pos++, ID_file_history + i, std_to_wx (s.str ()));
+ _file_menu->Insert (pos++, ID_file_history + i, std_to_wx (s));
}
_history_items = history.size ();
}
_history_items = history.size ();