prevent pesty warning: "QFSFileEngine::map: Mapping a file beyond its size is not...
authorMilian Wolff <mail@milianw.de>
Sun, 7 Nov 2010 23:53:34 +0000 (00:53 +0100)
committerMilian Wolff <mail@milianw.de>
Sun, 7 Nov 2010 23:53:34 +0000 (00:53 +0100)
commite885136f5fbabca5bebc82e4db1b97b1655b5c44
treeafd204cb419d719fdf1096cbac7a38e056586184
parent85309f3fbfe0c4caa6f968a75da19df370cd5d3a
prevent pesty warning: "QFSFileEngine::map: Mapping a file beyond its size is not portable"

the reason is that when initing an item repo it was exactly BucketStartOffset bites big.
Hence: m_file->size() - BucketStartOffset == 0 and m_file->map(some offset, size = 0)
would not make any sense. So just don't do it at all.
language/duchain/repositories/itemrepository.h