summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools/source/skeletonmaker/cppcompskeleton.cxx')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx50
1 files changed, 25 insertions, 25 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index cd6f42f4e027..a1ecdf540d3b 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -39,7 +39,7 @@ using namespace ::codemaker::cpp;
namespace skeletonmaker { namespace cpp {
void generateIncludes(std::ostream & o,
- const std::hash_set< OString, OStringHash >& interfaces,
+ const boost::unordered_set< OString, OStringHash >& interfaces,
const AttributeInfo& /*properties*/,
OString propertyhelper, bool serviceobject,
bool supportxcomponent)
@@ -65,7 +65,7 @@ void generateIncludes(std::ostream & o,
o << "#include \"cppuhelper/propertysetmixin.hxx\"\n";
}
- std::hash_set< OString, OStringHash >::const_iterator iter = interfaces.begin();
+ boost::unordered_set< OString, OStringHash >::const_iterator iter = interfaces.begin();
while (iter != interfaces.end())
{
o << "#include \""
@@ -148,7 +148,7 @@ OString generateCompHelperDeclaration(std::ostream & o,
void generateCompHelperDefinition(std::ostream & o,
const OString & implname,
const OString & classname,
- const std::hash_set< OString, OStringHash >& services)
+ const boost::unordered_set< OString, OStringHash >& services)
{
OString nm;
short nbrackets = generateNamespace(o, implname, true, nm);
@@ -161,7 +161,7 @@ void generateCompHelperDefinition(std::ostream & o,
"_getSupportedServiceNames()\n{\n css::uno::Sequence< "
<< "::rtl::OUString >" << " s(" << services.size() << ");\n";
- std::hash_set< OString, OStringHash >::const_iterator iter = services.begin();
+ boost::unordered_set< OString, OStringHash >::const_iterator iter = services.begin();
short i=0;
while (iter != services.end())
{
@@ -515,7 +515,7 @@ void generateXDispatchProvider(std::ostream& o,
void generateAddinConstructorAndHelper(std::ostream& o,
ProgramOptions const & options,
TypeManager const & manager, const OString & classname,
- const std::hash_set< OString, OStringHash >& interfaces)
+ const boost::unordered_set< OString, OStringHash >& interfaces)
{
o << classname << "::" << classname
<< "(css::uno::Reference< css::uno::XComponentContext > const & context) :\n"
@@ -635,10 +635,10 @@ OString generateClassDefinition(std::ostream& o,
ProgramOptions const & options,
TypeManager const & manager,
OString const & classname,
- std::hash_set< OString, OStringHash > const & interfaces,
+ boost::unordered_set< OString, OStringHash > const & interfaces,
AttributeInfo const & properties,
AttributeInfo const & attributes,
- std::hash_set< OString, OStringHash > const & propinterfaces,
+ boost::unordered_set< OString, OStringHash > const & propinterfaces,
OString const & propertyhelper, bool supportxcomponent)
{
OStringBuffer parentname(64);
@@ -657,7 +657,7 @@ OString generateClassDefinition(std::ostream& o,
o << " public ::cppu::WeakImplHelper" << interfaces.size() << "<";
}
- std::hash_set< OString, OStringHash >::const_iterator iter =
+ boost::unordered_set< OString, OStringHash >::const_iterator iter =
interfaces.begin();
while (iter != interfaces.end())
{
@@ -698,7 +698,7 @@ OString generateClassDefinition(std::ostream& o,
OStringBuffer buffer(256);
buffer.append(parentname);
buffer.append("< ");
- std::hash_set< OString, OStringHash >::const_iterator iter =
+ boost::unordered_set< OString, OStringHash >::const_iterator iter =
interfaces.begin();
while (iter != interfaces.end())
{
@@ -716,7 +716,7 @@ OString generateClassDefinition(std::ostream& o,
<< parent << "::release(); }\n\n";
}
- std::hash_set< OString, OStringHash >::const_iterator it =
+ boost::unordered_set< OString, OStringHash >::const_iterator it =
interfaces.begin();
codemaker::GeneratedTypeSet generated;
while (it != interfaces.end())
@@ -733,9 +733,9 @@ OString generateClassDefinition(std::ostream& o,
<< " virtual ~" << classname << "() {}\n\n";
if (options.componenttype == 2) {
- o << " typedef std::hash_map< ::sal_Int32, rtl::OUString, "
+ o << " typedef boost::unordered_map< ::sal_Int32, rtl::OUString, "
"std::hash<::sal_Int32> > ParamMap;\n"
- " typedef std::hash_map< rtl::OUString, ParamMap, "
+ " typedef boost::unordered_map< rtl::OUString, ParamMap, "
"rtl::OUStringHash > FunctionMap;\n\n"
" ::rtl::OUString SAL_CALL getAddinProperty(const ::rtl::OUString & "
"funcName, const ::rtl::OUString & paramName, const char * propName) "
@@ -810,7 +810,7 @@ OString generateClassDefinition(std::ostream& o,
<< "(css::uno::Reference< css::uno::XComponentContext > const & context) :\n";
if (supportxcomponent) {
o << " ::cppu::WeakComponentImplHelper" << interfaces.size() << "<";
- std::hash_set< OString, OStringHash >::const_iterator iter =
+ boost::unordered_set< OString, OStringHash >::const_iterator iter =
interfaces.begin();
while (iter != interfaces.end()) {
o << "\n " << scopedCppName(*iter, false, true);
@@ -897,13 +897,13 @@ void generateXServiceInfoBodies(std::ostream& o,
void generateMethodBodies(std::ostream& o,
ProgramOptions const & options,
TypeManager const & manager,
- std::hash_set< OString, OStringHash > const & interfaces,
+ boost::unordered_set< OString, OStringHash > const & interfaces,
OString const & classname,
OString const & comphelpernamespace,
OString const & propertyhelper)
{
OString name(classname.concat("::"));
- std::hash_set< OString, OStringHash >::const_iterator iter =
+ boost::unordered_set< OString, OStringHash >::const_iterator iter =
interfaces.begin();
codemaker::GeneratedTypeSet generated;
while (iter != interfaces.end()) {
@@ -922,7 +922,7 @@ void generateMethodBodies(std::ostream& o,
void generateQueryInterface(std::ostream& o,
ProgramOptions const & options,
TypeManager const & manager,
- const std::hash_set< OString, OStringHash >& interfaces,
+ const boost::unordered_set< OString, OStringHash >& interfaces,
OString const & parentname,
OString const & classname,
OString const & propertyhelper)
@@ -940,7 +940,7 @@ void generateQueryInterface(std::ostream& o,
o << "css::uno::Any a(";
o << parentname << "<";
- std::hash_set< OString, OStringHash >::const_iterator iter =
+ boost::unordered_set< OString, OStringHash >::const_iterator iter =
interfaces.begin();
while (iter != interfaces.end())
{
@@ -980,11 +980,11 @@ void generateSkeleton(ProgramOptions const & options,
return;
}
- std::hash_set< OString, OStringHash > interfaces;
- std::hash_set< OString, OStringHash > services;
+ boost::unordered_set< OString, OStringHash > interfaces;
+ boost::unordered_set< OString, OStringHash > services;
AttributeInfo properties;
AttributeInfo attributes;
- std::hash_set< OString, OStringHash > propinterfaces;
+ boost::unordered_set< OString, OStringHash > propinterfaces;
bool serviceobject = false;
bool supportxcomponent = false;
@@ -1113,11 +1113,11 @@ void generateCalcAddin(ProgramOptions const & options,
TypeManager const & manager,
std::vector< OString > const & types)
{
- std::hash_set< OString, OStringHash > interfaces;
- std::hash_set< OString, OStringHash > services;
+ boost::unordered_set< OString, OStringHash > interfaces;
+ boost::unordered_set< OString, OStringHash > services;
AttributeInfo properties;
AttributeInfo attributes;
- std::hash_set< OString, OStringHash > propinterfaces;
+ boost::unordered_set< OString, OStringHash > propinterfaces;
bool serviceobject = false;
bool supportxcomponent = false;
@@ -1137,7 +1137,7 @@ void generateCalcAddin(ProgramOptions const & options,
// get the one and only add-in service for later use
- std::hash_set< OString, OStringHash >::const_iterator iter2 = services.begin();
+ boost::unordered_set< OString, OStringHash >::const_iterator iter2 = services.begin();
sAddinService = (*iter2).replace('/', '.');
if (sAddinService.equals("com.sun.star.sheet.AddIn")) {
sAddinService = (*(++iter2)).replace('/', '.');
@@ -1204,7 +1204,7 @@ void generateCalcAddin(ProgramOptions const & options,
"#include \"com/sun/star/container/XNameAccess.hpp\"\n"
"#include \"com/sun/star/container/XHierarchicalNameAccess.hpp\"\n\n"
"#include \"rtl/ustrbuf.hxx\"\n\n"
- "#include <hash_map>\n"
+ "#include <boost/unordered_map.hpp>\n"
"#include <set>\n";
// namespace