That's probably not meant to be a C++ reference to a uno::Reference

...as introduced with e75f6e549e "sfx2: make
SfxClassificationHelper not require a full doc shell".  Made
CppunitTest_sfx2_classification crash now when dereferencing
m_xDocumentProperties in
SfxClassificationHelper::Impl::pushToDocumentProperties, when built with a
recent Clang trunk build.

Change-Id: Id0b7fa0627b9642f748f07d7dfa05353114225fa
This commit is contained in:
Stephan Bergmann
2016-12-13 19:34:00 +01:00
parent a4dc0ce392
commit e90b004a41

View File

@@ -331,7 +331,7 @@ public:
std::map<SfxClassificationPolicyType, SfxClassificationCategory> m_aCategory;
/// Possible categories of a policy to choose from.
std::vector<SfxClassificationCategory> m_aCategories;
const uno::Reference<document::XDocumentProperties>& m_xDocumentProperties;
uno::Reference<document::XDocumentProperties> m_xDocumentProperties;
explicit Impl(const uno::Reference<document::XDocumentProperties>& xDocumentProperties);
void parsePolicy();