as_crc.h

changeset 3
c1941114ca88
parent 1
d64aaa7d146f
child 12
ceb4ba3d2d00
     1.1 --- a/as_crc.h	Fri Nov 28 14:20:00 2008 +0100
     1.2 +++ b/as_crc.h	Fri Dec 05 23:14:02 2008 +0100
     1.3 @@ -1,12 +1,12 @@
     1.4  //
     1.5  //  OSSP asgui - Accounting system graphical user interface
     1.6 -//  Copyright (c) 2002-2004 The OSSP Project (http://www.ossp.org/)
     1.7 -//  Copyright (c) 2002-2004 Ralf S. Engelschall <rse@engelschall.com>
     1.8 -//  Copyright (c) 2002-2004 Michael Schloh von Bennewitz <michael@schloh.com>
     1.9 -//  Copyright (c) 2002-2004 Cable & Wireless Telecommunications Services GmbH
    1.10 +//  Copyright (c) 2002-2008 The OSSP Project (http://www.ossp.org/)
    1.11 +//  Copyright (c) 2002-2008 Ralf S. Engelschall <rse@engelschall.com>
    1.12 +//  Copyright (c) 2002-2008 Michael Schloh von Bennewitz <michael@schloh.com>
    1.13 +//  Copyright (c) 2002-2008 Cable & Wireless Telecommunications Services GmbH
    1.14  //
    1.15  //  This file is part of OSSP asgui, an accounting system graphical user
    1.16 -//  interface which can be found at http://www.ossp.org/pkg/tool/asgui/.
    1.17 +//  interface which can be found at http://asgui.europalab.com/.
    1.18  //
    1.19  //  Permission to use, copy, modify, and distribute this software for
    1.20  //  any purpose with or without fee is hereby granted, provided that
    1.21 @@ -32,6 +32,8 @@
    1.22  #ifndef CRC_H
    1.23  #define CRC_H
    1.24  
    1.25 +#define QT3_SUPPORT
    1.26 +
    1.27  #include <string>       // For copy constructor using string
    1.28  #include <qstring.h>    // For deriving from QString
    1.29  
    1.30 @@ -51,7 +53,7 @@
    1.31      Qualistring(void) : QString() {initCrc();};                          // Default
    1.32      Qualistring(const QString &kCopy) : QString(kCopy) {initCrc();};     // Copy
    1.33      Qualistring(const char *pkcCopy) : QString(pkcCopy) {initCrc();};    // Copy
    1.34 -    Qualistring(const std::string &kCopy) : QString(kCopy) {initCrc();}; // Copy
    1.35 +    Qualistring(const std::string &kCopy) : QString(QString::fromStdString(kCopy)) {initCrc();}; // Copy
    1.36  
    1.37      U32 getCrc(void);                           // Generate and return a CRC32
    1.38      Qualistring &operator=(const QString &);    // Overload equals operator

mercurial