Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-3090

Ambiguity with helpmanager.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.2.0
    • Qt Creator 2.2.0
    • Building Qt Creator
    • None
    • OS: Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
      Compiler: i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
    • 0985f9c1c48e07a1f89eda1e53027ce99cfec595

    Description

      Two files in the project have the same name:
      src/plugins/coreplugin/helpmanager.h
      src/plugins/help/helpmanager.h

      When including headers from files in src/plugins/help/ a simple
      #include "helpmanager.h"
      causes an ambiguity.

      I have experienced the problem in OSX10.5 with latest master.

      src/plugins/coreplugin/helpmanager.h was chosen over src/plugins/help/helpmanager.h which caused the following compilation error:
      shared/help/bookmarkmanager.cpp: In member function 'void BookmarkManager::saveBookmarks()':
      shared/help/bookmarkmanager.cpp:650: error: 'LocalHelpManager' has not been declared
      shared/help/bookmarkmanager.cpp:650: error: 'helpEngine' was not declared in this scope
      shared/help/bookmarkmanager.cpp: In member function 'void BookmarkManager::setupBookmarkModels()':
      shared/help/bookmarkmanager.cpp:769: error: 'LocalHelpManager' has not been declared
      shared/help/bookmarkmanager.cpp:769: error: 'helpEngine' was not declared in this scope

      The solution is to change
      #include "helpmanager.h"
      with
      #include "help/helpmanager.h"
      in the following files:
      shared/help/bookmarkmanager.cpp
      shared/help/indexwindow.cpp

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            heimrich Karsten Heimrich
            newbiz Aurélien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes