summaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 5d5e924a..fd219144 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -64,7 +64,7 @@
#include <strstream>
#include <string>
-using namespace std;
+using std::ends;
Toolbar::Toolbar(BScreen &scrn, Resource &conf) : screen(scrn),
openbox(scrn.getOpenbox()), config(conf)
@@ -215,7 +215,7 @@ Toolbar::~Toolbar() {
void Toolbar::setOnTop(bool b) {
m_ontop = b;
- ostrstream s;
+ std::ostrstream s;
s << "session.screen" << screen.getScreenNumber() << ".toolbar.onTop" << ends;
config.setValue(s.str(), m_ontop ? "True" : "False");
s.rdbuf()->freeze(0);
@@ -223,7 +223,7 @@ void Toolbar::setOnTop(bool b) {
void Toolbar::setAutoHide(bool b) {
m_autohide = b;
- ostrstream s;
+ std::ostrstream s;
s << "session.screen" << screen.getScreenNumber() << ".toolbar.autoHide"
<< ends;
config.setValue(s.str(), m_autohide ? "True" : "False");
@@ -232,7 +232,7 @@ void Toolbar::setAutoHide(bool b) {
void Toolbar::setWidthPercent(int w) {
m_width_percent = w;
- ostrstream s;
+ std::ostrstream s;
s << "session.screen" << screen.getScreenNumber() << ".toolbar.widthPercent"
<< ends;
config.setValue(s.str(), m_width_percent);
@@ -241,7 +241,7 @@ void Toolbar::setWidthPercent(int w) {
void Toolbar::setPlacement(int p) {
m_placement = p;
- ostrstream s;
+ std::ostrstream s;
s << "session.screen" << screen.getScreenNumber() << ".toolbar.placement"
<< ends;
const char *placement;
@@ -265,8 +265,8 @@ void Toolbar::save() {
}
void Toolbar::load() {
- ostrstream rscreen, rname, rclass;
- string s;
+ std::ostrstream rscreen, rname, rclass;
+ std::string s;
bool b;
long l;
rscreen << "session.screen" << screen.getScreenNumber() << '.' << ends;