Commit 9b7e4ffb authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Fixed several Coverity warnings

parent e986e003
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -550,6 +550,7 @@ int QFile::writeBlock( const char *p, uint len )
	return -1;
    }
#endif
    if (p==0) return 0;
    int nwritten;				// number of bytes written
    if ( isRaw() )				// raw file
	nwritten = (int)WRITE( fd, p, len );
+10 −9
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ class CondParser
{
  // public functions
  public:
    CondParser() : m_e(0), m_tokenType(NOTHING) {}
    bool parse(const char *fileName,int lineNr,const char *expr);

    // enumerations
+4 −2
Original line number Diff line number Diff line
@@ -5760,7 +5760,8 @@ class ClassTreeContext::Private : public PropertyMapper
    SharedPtr<NestingContext> m_classTree;
    struct Cachable
    {
      Cachable() : maxDepthComputed(FALSE), preferredDepthComputed(FALSE) {}
      Cachable() : maxDepth(0), maxDepthComputed(FALSE),
                   preferredDepth(0), preferredDepthComputed(FALSE) {}
      int   maxDepth;
      bool  maxDepthComputed;
      int   preferredDepth;
@@ -6168,7 +6169,8 @@ class FileTreeContext::Private : public PropertyMapper
    SharedPtr<NestingContext> m_dirFileTree;
    struct Cachable
    {
      Cachable() : maxDepthComputed(FALSE), preferredDepthComputed(FALSE) {}
      Cachable() : maxDepth(0), maxDepthComputed(FALSE),
                   preferredDepth(0), preferredDepthComputed(FALSE) {}
      int   maxDepth;
      bool  maxDepthComputed;
      int   preferredDepth;
+8 −8
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ class DefinitionImpl
DefinitionImpl::DefinitionImpl()
  : sectionDict(0), sourceRefByDict(0), sourceRefsDict(0),
    xrefListItems(0), partOfGroups(0),
    details(0), inbodyDocs(0), brief(0), body(0), 
    outerScope(0)
    details(0), inbodyDocs(0), brief(0), body(0), hidden(FALSE), isArtificial(FALSE),
    outerScope(0), lang(SrcLangExt_Unknown)
{
}

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@

static int g_dirCount=0;

DirDef::DirDef(const char *path) : Definition(path,1,1,path)
DirDef::DirDef(const char *path) : Definition(path,1,1,path), visited(FALSE)
{
  bool fullPathNames = Config_getBool("FULL_PATH_NAMES");
  // get display name (stipping the paths mentioned in STRIP_FROM_PATH)
Loading