author | kergoth <kergoth> | 2002-11-14 22:40:52 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-14 22:40:52 (UTC) |
commit | ec92de66e81b145119ff15bea0ad88436eb7bd4b (patch) (unidiff) | |
tree | a65e8adc4edd60d7822f75e8b574e8e97596773c /noncore/apps/oxygen/kmolcalc.cpp | |
parent | 3f1d60609657ea69bda453f5c820a23ee5375ab8 (diff) | |
download | opie-ec92de66e81b145119ff15bea0ad88436eb7bd4b.zip opie-ec92de66e81b145119ff15bea0ad88436eb7bd4b.tar.gz opie-ec92de66e81b145119ff15bea0ad88436eb7bd4b.tar.bz2 |
namespace and include fix for uses of iostream in STL
Diffstat (limited to 'noncore/apps/oxygen/kmolcalc.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/kmolcalc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/kmolcalc.cpp b/noncore/apps/oxygen/kmolcalc.cpp index 33666b1..1d41b0f 100644 --- a/noncore/apps/oxygen/kmolcalc.cpp +++ b/noncore/apps/oxygen/kmolcalc.cpp | |||
@@ -1,43 +1,43 @@ | |||
1 | /* | 1 | /* |
2 | * kmolcalc.cpp | 2 | * kmolcalc.cpp |
3 | * | 3 | * |
4 | * Copyright (C) 2000,2001 Tomislav Gountchev <tomi@idiom.com> | 4 | * Copyright (C) 2000,2001 Tomislav Gountchev <tomi@idiom.com> |
5 | * Copyright (C) 2002 Carsten Niehaus <cniehaus@handhelds.org> | 5 | * Copyright (C) 2002 Carsten Niehaus <cniehaus@handhelds.org> |
6 | */ | 6 | */ |
7 | 7 | ||
8 | /** | 8 | /** |
9 | * KMOLCALC is the calculation engine. It knows about a hashtable of user defined atomic | 9 | * KMOLCALC is the calculation engine. It knows about a hashtable of user defined atomic |
10 | * weights and group definitions ELSTABLE, and the currently processed formula, stored | 10 | * weights and group definitions ELSTABLE, and the currently processed formula, stored |
11 | * as a list of elements and their coefficients, ELEMENTS. | 11 | * as a list of elements and their coefficients, ELEMENTS. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "kmolcalc.h" | 14 | #include "kmolcalc.h" |
15 | #include <qdict.h> | 15 | #include <qdict.h> |
16 | #include <qdir.h> | 16 | #include <qdir.h> |
17 | #include <qfile.h> | 17 | #include <qfile.h> |
18 | #include <qpe/qpeapplication.h> | 18 | #include <qpe/qpeapplication.h> |
19 | #include <iostream.h> | 19 | #include <iostream> |
20 | 20 | ||
21 | 21 | ||
22 | /** | 22 | /** |
23 | * Construct a new calculator object. | 23 | * Construct a new calculator object. |
24 | */ | 24 | */ |
25 | KMolCalc::KMolCalc() { | 25 | KMolCalc::KMolCalc() { |
26 | elements = new ElementList; | 26 | elements = new ElementList; |
27 | elstable = NULL; | 27 | elstable = NULL; |
28 | readElstable(); | 28 | readElstable(); |
29 | } | 29 | } |
30 | 30 | ||
31 | KMolCalc::~KMolCalc() { | 31 | KMolCalc::~KMolCalc() { |
32 | delete elements; | 32 | delete elements; |
33 | } | 33 | } |
34 | 34 | ||
35 | void KMolCalc::readElstable() { | 35 | void KMolCalc::readElstable() { |
36 | weight = -1; // not calculated yet | 36 | weight = -1; // not calculated yet |
37 | if (elstable) delete elstable; | 37 | if (elstable) delete elstable; |
38 | elstable = new QDict<SubUnit> (197, TRUE); | 38 | elstable = new QDict<SubUnit> (197, TRUE); |
39 | elstable->setAutoDelete(TRUE); | 39 | elstable->setAutoDelete(TRUE); |
40 | mwfile = QPEApplication::qpeDir() +"share/oxygen/kmolweights"; | 40 | mwfile = QPEApplication::qpeDir() +"share/oxygen/kmolweights"; |
41 | QFile f(mwfile); | 41 | QFile f(mwfile); |
42 | if (f.exists()) readMwfile(f); | 42 | if (f.exists()) readMwfile(f); |
43 | } | 43 | } |