summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-12-29 18:27:00 (UTC)
committer llornkcor <llornkcor>2004-12-29 18:27:00 (UTC)
commite3fa443e845e76707171c6fae79125892a369b75 (patch) (side-by-side diff)
treef2214ae1c6e1297109b4dcef4759b2c0aca27595
parente2d6f156eacc312f270a1b5c3830e58be8941460 (diff)
downloadopie-e3fa443e845e76707171c6fae79125892a369b75.zip
opie-e3fa443e845e76707171c6fae79125892a369b75.tar.gz
opie-e3fa443e845e76707171c6fae79125892a369b75.tar.bz2
patch to remove stl, from hrw
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-bartender/drinkdata.cpp9
-rw-r--r--noncore/apps/opie-bartender/drinkdata.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/noncore/apps/opie-bartender/drinkdata.cpp b/noncore/apps/opie-bartender/drinkdata.cpp
index 8856e46..53e7b8d 100644
--- a/noncore/apps/opie-bartender/drinkdata.cpp
+++ b/noncore/apps/opie-bartender/drinkdata.cpp
@@ -15,13 +15,12 @@
#include <qvaluelist.h>
/* STD */
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
-#include <iostream>
#include <errno.h>
#include "drinkdata.h"
// ----- DrinkData -----
@@ -63,20 +62,12 @@ bool DrinkData::read(void) {
dbFile.close();
return true;
}
-void DrinkData::print(void) {
- DrinkList::Iterator it = items.begin();
- while ( it != items.end() ) {
- std::cout << (*it).getName() << '\n';
- ++it;
- }
-}
-
void DrinkData::addDrink(const QString &name, const QString &ingredients) {
DrinkItem item(name, ingredients);
items.append(item);
}
DrinkList::Iterator DrinkData::findDrink(const QString &name) {
diff --git a/noncore/apps/opie-bartender/drinkdata.h b/noncore/apps/opie-bartender/drinkdata.h
index bcc3022..2b96d1d 100644
--- a/noncore/apps/opie-bartender/drinkdata.h
+++ b/noncore/apps/opie-bartender/drinkdata.h
@@ -22,13 +22,12 @@ private:
QString filename;
public:
DrinkData(void);
void setFile(const QString &filename);
bool writeChanges(void);
bool read(void);
- void print(void);
void addDrink(const QString &name, const QString &ingredients);
DrinkList::Iterator getBegin(void);
DrinkList::Iterator getEnd(void);
DrinkList::Iterator findDrink(const QString &name);
};