~vcs-imports/workrave/main

« back to all changes in this revision

Viewing changes to backend/src/win32/Win32Configurator.cc

  • Committer: dotsphinx
  • Date: 2006-09-18 20:28:17 UTC
  • Revision ID: vcs-imports@canonical.com-20060918202817-bbb4f486e702a9f3
Configurator with defaults

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Win32Configurator.cc --- Configuration Access
2
2
//
3
 
// Copyright (C) 2002, 2005 Raymond Penners <raymond@dotsphinx.com>
 
3
// Copyright (C) 2002, 2005, 2006 Raymond Penners <raymond@dotsphinx.com>
4
4
// All rights reserved.
5
5
//
6
6
// This program is free software; you can redistribute it and/or modify
14
14
// GNU General Public License for more details.
15
15
// 
16
16
 
17
 
static const char rcsid[] = "$Id: Win32Configurator.cc,v 1.2 2005/10/26 18:51:24 rcaelers Exp $";
 
17
static const char rcsid[] = "$Id: Win32Configurator.cc,v 1.3 2006/09/18 20:28:19 dotsphinx Exp $";
18
18
 
19
19
#ifdef HAVE_CONFIG_H
20
20
#include "config.h"
154
154
  bool rc = get_value(key, &s);
155
155
  if (rc)
156
156
    {
157
 
      int f = sscanf(s.c_str(), "%f", out);
 
157
      int f = sscanf(s.c_str(), "%lf", out);
158
158
      rc = (f == 1);
159
159
    }
160
160
  return rc;