diff options
-rw-r--r-- | include/vcl/builder.hxx | 11 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index 51d3efc72bd1..bb63cf20d535 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -31,24 +31,17 @@ class DateField; class TimeField; class VclMultiLineEdit; -namespace vcl { namespace detail { - -class SAL_DLLPUBLIC_TEMPLATE ModuleMap: - public boost::ptr_map<OUString, osl::Module> -{}; - -} } - class VCL_DLLPUBLIC VclBuilder: private boost::noncopyable { public: typedef std::map<OString, OString> stringmap; typedef Window* (*customMakeWidget)(Window *pParent, stringmap &rVec); private: + typedef boost::ptr_map<OUString, osl::Module> ModuleMap; //We store these until the builder is deleted, that way we can use the //ui-previewer on custom widgets and guarantee the modules they are from //exist for the duration of the dialog - vcl::detail::ModuleMap m_aModuleMap; + ModuleMap m_aModuleMap; //If the toplevel window has any properties which need to be set on it, //but the toplevel is the owner of the builder, then its ctor diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index c3e0a7f5b1ee..fe8d4bae8305 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1223,7 +1223,7 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri OUString sFunction(OStringToOUString(OString("make") + name.copy(nDelim+1), RTL_TEXTENCODING_UTF8)); #ifndef DISABLE_DYNLOADING OUString sModule = sModuleBuf.makeStringAndClear(); - vcl::detail::ModuleMap::iterator aI = m_aModuleMap.find(sModule); + ModuleMap::iterator aI = m_aModuleMap.find(sModule); osl::Module* pModule = NULL; if (aI == m_aModuleMap.end()) { |