~ubuntu-branches/ubuntu/quantal/libwpd/quantal

« back to all changes in this revision

Viewing changes to src/lib/GSFStream.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-11-21 17:45:38 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071121174538-ue68b9jzc5y8wq8e
Tags: 0.8.12-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add debian/patches/gcc43.diff and build rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
const uint8_t * GSFInputStream::read(size_t numBytes, size_t &numBytesRead)
54
54
{
 
55
        numBytesRead = 0;
 
56
        
 
57
        if (0 == numBytes)
 
58
                return 0;
 
59
 
55
60
        const uint8_t *buf = gsf_input_read(m_input, numBytes, 0);
56
61
 
57
 
        if (!buf)
58
 
                numBytesRead = 0;
59
 
        else
 
62
        if (buf)
60
63
                numBytesRead = numBytes;
61
64
 
62
65
        return buf;