Want more features on Pastebin? Sign Up, it's FREE!
Guest

kdevplatform-git-duchain_fix_registrators.patch

By: a guest on May 10th, 2011  |  syntax: Diff  |  size: 1.33 KB  |  views: 67  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/language/duchain/duchainregister.h b/language/duchain/duchainregister.h
  2. index 805b387..e8418cd 100644
  3. --- a/language/duchain/duchainregister.h
  4. +++ b/language/duchain/duchainregister.h
  5. @@ -160,10 +160,10 @@ class KDEVPLATFORMLANGUAGE_EXPORT DUChainItemSystem {
  6.  template<class T, class Data>
  7.  struct DUChainItemRegistrator {
  8.    DUChainItemRegistrator() {
  9. -    DUChainItemSystem::self().registerTypeClass<T, Data>();
  10. +    DUChainItemSystem::self().template registerTypeClass<T, Data>();
  11.    }
  12.    ~DUChainItemRegistrator() {
  13. -    DUChainItemSystem::self().unregisterTypeClass<T, Data>();
  14. +    DUChainItemSystem::self().template unregisterTypeClass<T, Data>();
  15.    }
  16.  };
  17.  
  18. diff --git a/language/duchain/types/typeregister.h b/language/duchain/types/typeregister.h
  19. index 1ef9e44..8eb95a2 100644
  20. --- a/language/duchain/types/typeregister.h
  21. +++ b/language/duchain/types/typeregister.h
  22. @@ -195,10 +195,10 @@ class KDEVPLATFORMLANGUAGE_EXPORT TypeSystem {
  23.  template<class T, class Data>
  24.  struct TypeSystemRegistrator {
  25.    TypeSystemRegistrator() {
  26. -    TypeSystem::self().registerTypeClass<T, Data>();
  27. +    TypeSystem::self().template registerTypeClass<T, Data>();
  28.    }
  29.    ~TypeSystemRegistrator() {
  30. -    TypeSystem::self().unregisterTypeClass<T, Data>();
  31. +    TypeSystem::self().template unregisterTypeClass<T, Data>();
  32.    }
  33.  };
clone this paste RAW Paste Data