Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const DeckDescriptor* ResourceManager::GetDeckDescriptor(const OUString& rsDeckId) const
- {
- const DeckDescriptor* pDeckDesc = ImplGetDeckDescriptor(rsDeckId);
- return pDeckDesc;
- }
- DeckDescriptor* ResourceManager::GetDeckDescriptor(const OUString& rsDeckId)
- {
- DeckDescriptor* pDeckDesc = ImplGetDeckDescriptor(rsDeckId);
- return pDeckDesc;
- }
- DeckDescriptor* ResourceManager::ImplGetDeckDescriptor(const OUString& rsDeckId)
- {
- DeckContainer::iterator iDeck;
- for (iDeck = maDecks.begin(); iDeck != maDecks.end(); ++iDeck)
- {
- if (iDeck->mbExperimental && !maMiscOptions.IsExperimentalMode())
- continue;
- if (iDeck->msId.equals(rsDeckId))
- return &*iDeck;
- }
- return NULL;
- }
- /home/lgodard/projets/libreoffice/build/git/core/sfx2/source/sidebar/ResourceManager.cxx: In member function ‘const sfx2::sidebar::DeckDescriptor* sfx2::sidebar::ResourceManager::GetDeckDescriptor(const rtl::OUString&) const’:
- /home/lgodard/projets/libreoffice/build/git/core/sfx2/source/sidebar/ResourceManager.cxx:98:69: error: passing ‘const sfx2::sidebar::ResourceManager’ as ‘this’ argument of ‘sfx2::sidebar::DeckDescriptor* sfx2::sidebar::ResourceManager::ImplGetDeckDescriptor(const rtl::OUString&)’ discards qualifiers [-fpermissive]
- const DeckDescriptor* pDeckDesc = ImplGetDeckDescriptor(rsDeckId);
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement