Diffstat (limited to 'noncore/apps/tableviewer/db/csvsource.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tableviewer/db/csvsource.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/tableviewer/db/csvsource.cpp b/noncore/apps/tableviewer/db/csvsource.cpp index 2561b4b..ea36300 100644 --- a/noncore/apps/tableviewer/db/csvsource.cpp +++ b/noncore/apps/tableviewer/db/csvsource.cpp | |||
@@ -89,24 +89,25 @@ QStringList readElem(QString in) | |||
89 | } | 89 | } |
90 | /* we have our current elem */ | 90 | /* we have our current elem */ |
91 | out << elem.stripWhiteSpace(); | 91 | out << elem.stripWhiteSpace(); |
92 | firstChar = TRUE; | 92 | firstChar = TRUE; |
93 | quotedElem = FALSE; | 93 | quotedElem = FALSE; |
94 | /* skip till a , or end of line */ | 94 | /* skip till a , or end of line */ |
95 | while (index < in.length() && in[index] != ',') index++; | 95 | while (index < in.length() && in[index] != ',') index++; |
96 | if(index == in.length()) | 96 | if(index == in.length()) |
97 | return out; | 97 | return out; |
98 | else | 98 | else |
99 | index++; | 99 | index++; |
100 | } | 100 | } |
101 | return out; | ||
101 | } | 102 | } |
102 | 103 | ||
103 | bool DBCsv::openSource(QIODevice *inDev) | 104 | bool DBCsv::openSource(QIODevice *inDev) |
104 | { | 105 | { |
105 | QTextStream tsIn(inDev); | 106 | QTextStream tsIn(inDev); |
106 | QString in = tsIn.readLine().stripWhiteSpace(); | 107 | QString in = tsIn.readLine().stripWhiteSpace(); |
107 | QStringList keys; | 108 | QStringList keys; |
108 | 109 | ||
109 | keys = readElem(in); | 110 | keys = readElem(in); |
110 | 111 | ||
111 | QMap<int,int> keyIndexes; | 112 | QMap<int,int> keyIndexes; |
112 | 113 | ||