aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-02-13 16:34:37 (GMT)
committerfluxgen <fluxgen>2005-02-13 16:34:37 (GMT)
commitb8a39c1e6c3fd7d21188193cdb874da474149d33 (patch)
treecb263a421a9e925e0e49010dbc097f3297e5744a /src/ClientPattern.cc
parente822437cb8c23c5e7539fa168ef5a22bc9bb08a1 (diff)
downloadfluxbox_pavel-b8a39c1e6c3fd7d21188193cdb874da474149d33.zip
fluxbox_pavel-b8a39c1e6c3fd7d21188193cdb874da474149d33.tar.bz2
stringstream header
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r--src/ClientPattern.cc18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index fd9ab9d..c93708a 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -25,8 +25,10 @@
25#include "ClientPattern.hh" 25#include "ClientPattern.hh"
26#include "RegExp.hh" 26#include "RegExp.hh"
27#include "WinClient.hh" 27#include "WinClient.hh"
28
28#include "FbTk/StringUtil.hh" 29#include "FbTk/StringUtil.hh"
29#include "FbTk/App.hh" 30#include "FbTk/App.hh"
31#include "FbTk/stringstream.hh"
30 32
31// use GNU extensions 33// use GNU extensions
32#ifndef _GNU_SOURCE 34#ifndef _GNU_SOURCE
@@ -47,20 +49,6 @@
47// needed as well for index on some systems (e.g. solaris) 49// needed as well for index on some systems (e.g. solaris)
48#include <strings.h> 50#include <strings.h>
49 51
50#ifdef HAVE_CONFIG_H
51#include "config.h"
52#endif // HAVE_CONFIG_H
53
54#ifdef HAVE_SSTREAM
55#include <sstream>
56#define FB_istringstream istringstream
57#elif HAVE_STRSTREAM
58#include <strstream>
59#define FB_istringstream istrstream
60#else
61#error "You dont have sstream or strstream headers!"
62#endif // HAVE_STRSTREAM
63
64 52
65using namespace std; 53using namespace std;
66 54
@@ -141,7 +129,7 @@ ClientPattern::ClientPattern(const char *str):
141 str+pos, 129 str+pos,
142 '{', '}'); 130 '{', '}');
143 if (err > 0) { 131 if (err > 0) {
144 FB_istringstream iss(number.c_str()); 132 FbTk_istringstream iss(number.c_str());
145 iss >> m_matchlimit; 133 iss >> m_matchlimit;
146 pos+=err; 134 pos+=err;
147 } 135 }