Link Here
|
36 |
QFile file(KGlobal::dirs()->findResource("appdata", "scienceconstants.xml")); |
36 |
QFile file(KGlobal::dirs()->findResource("appdata", "scienceconstants.xml")); |
37 |
|
37 |
|
38 |
if (!file.open(QIODevice::ReadOnly)) { |
38 |
if (!file.open(QIODevice::ReadOnly)) { |
39 |
kDebug("Did not find file \"scienceconstants.xml\"." |
39 |
kDebug() << "Did not find file \"scienceconstants.xml\"." << "No constants will be available."; |
40 |
"No constants will be available."); |
|
|
41 |
return; |
40 |
return; |
42 |
} |
41 |
} |
43 |
if (!doc.setContent(&file)) { |
42 |
if (!doc.setContent(&file)) { |
44 |
file.close(); |
43 |
file.close(); |
45 |
kDebug("The file \"scienceconstants.xml\" does not seem" |
44 |
kDebug() << "The file \"scienceconstants.xml\" does not seem" |
46 |
"to be a valid description file." |
45 |
"to be a valid description file." |
47 |
"No constants will be available."); |
46 |
"No constants will be available."; |
48 |
return; |
47 |
return; |
49 |
} |
48 |
} |
50 |
file.close(); |
49 |
file.close(); |