Mercurial > projects > qtd
comparison examples/dialogs/classwizard/classwizard.d @ 180:39921f499a22
Fix #26
author | SokoL_SD |
---|---|
date | Thu, 02 Jul 2009 12:04:40 +0000 |
parents | 7648ee2e023b |
children | 7ea67ec3cf29 |
comparison
equal
deleted
inserted
replaced
179:d69b58c01131 | 180:39921f499a22 |
---|---|
146 Format("Cannot write file {}:\n{}", | 146 Format("Cannot write file {}:\n{}", |
147 headerFile.fileName(), | 147 headerFile.fileName(), |
148 headerFile.errorString())); | 148 headerFile.errorString())); |
149 return; | 149 return; |
150 } | 150 } |
151 headerFile.write(block.ptr, block.length); | 151 headerFile.write(block); |
152 | 152 |
153 block.length = 0; | 153 block.length = 0; |
154 | 154 |
155 if (field("comment").toBool()) { | 155 if (field("comment").toBool()) { |
156 block ~= "/*\n"; | 156 block ~= "/*\n"; |
200 Format(tr("Cannot write file {}:\n{}"), | 200 Format(tr("Cannot write file {}:\n{}"), |
201 implementationFile.fileName(), | 201 implementationFile.fileName(), |
202 implementationFile.errorString())); | 202 implementationFile.errorString())); |
203 return; | 203 return; |
204 } | 204 } |
205 implementationFile.write(block.ptr, block.length); | 205 implementationFile.write(block); |
206 | 206 |
207 QDialog.accept(); | 207 QDialog.accept(); |
208 } | 208 } |
209 } | 209 } |
210 | 210 |