From 72b654992d5c38b4bc5d19cfe0e580b2bdbc5eca Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 12 Aug 2003 21:00:54 +0000 Subject: minor cleaning --- src/fluxbox.cc | 76 +++++++++++++++++++--------------------------------------- 1 file changed, 25 insertions(+), 51 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index b6a0019..182e330 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.183 2003/08/12 01:04:16 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.184 2003/08/12 21:00:54 fluxgen Exp $ #include "fluxbox.hh" @@ -357,7 +357,21 @@ getString() { } static Window last_bad_window = None; +namespace { +void copyFile(const std::string &from, const std::string &to) { + ifstream from_file(from.c_str()); + ofstream to_file(to.c_str()); + + if (! to_file.good()) { + cerr<<"Can't write file: "<