Kaydet (Commit) b02998a7 authored tarafından Noel Grandin's avatar Noel Grandin

inline some use-once typedefs

and remove some dead ones

Change-Id: I6946d717d3c15dc5207489ed3d56d985dd953d59
Reviewed-on: https://gerrit.libreoffice.org/41746Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c54850b2
......@@ -63,12 +63,6 @@ struct KeyEventEqualsFunc
}
};
/**
Basic OUString hash.
Key and values are OUStrings.
*/
typedef std::unordered_map<OUString, OUString, OUStringHash> OUStringHashMap;
/**
It can be used to map names (e.g. of properties) to her corresponding handles.
Our helper class OPropertySetHelper works optimized with handles but sometimes we have only a property name.
......
......@@ -143,10 +143,10 @@ public:
// only requirement is the object needs to implement XName
typedef ::cppu::WeakImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::container::XEnumerationAccess > XNamedCollectionHelper_BASE;
template< typename OneIfc >
class XNamedObjectCollectionHelper : public XNamedCollectionHelper_BASE
class XNamedObjectCollectionHelper : public ::cppu::WeakImplHelper< css::container::XNameAccess,
css::container::XIndexAccess,
css::container::XEnumerationAccess >
{
public:
typedef std::vector< css::uno::Reference< OneIfc > > XNamedVec;
......@@ -330,9 +330,7 @@ public:
};
typedef ::cppu::WeakImplHelper<ov::XCollection> XCollection_InterfacesBASE;
typedef ScVbaCollectionBase< XCollection_InterfacesBASE > CollImplBase;
typedef ScVbaCollectionBase< ::cppu::WeakImplHelper<ov::XCollection> > CollImplBase;
// compatible with the old collections ( pre XHelperInterface base class ) ( some internal objects still use this )
class VBAHELPER_DLLPUBLIC ScVbaCollectionBaseImpl : public CollImplBase
{
......
......@@ -30,8 +30,6 @@
#include <vbahelper/vbadllapi.h>
#include <vbahelper/vbahelper.hxx>
typedef ::cppu::WeakImplHelper< ov::XPropValue > PropValueImpl_BASE;
class VBAHELPER_DLLPUBLIC PropListener
{
public:
......@@ -43,7 +41,7 @@ protected:
};
class VBAHELPER_DLLPUBLIC ScVbaPropValue : public PropValueImpl_BASE
class VBAHELPER_DLLPUBLIC ScVbaPropValue : public ::cppu::WeakImplHelper< ov::XPropValue >
{
PropListener* m_pListener;
public:
......
......@@ -88,10 +88,6 @@ class XMLErrors;
class StyleMap;
enum class SvXMLErrorFlags;
typedef std::stack<SvXMLImportContextRef> SvXMLImportContexts_Impl;
typedef std::stack<css::uno::Reference<css::xml::sax::XFastContextHandler>>
FastSvXMLImportContexts_Impl;
namespace xmloff {
class RDFaImportHelper;
}
......@@ -204,12 +200,13 @@ class XMLOFF_DLLPUBLIC SvXMLImport : public cppu::WeakImplHelper<
std::unique_ptr<SvXMLImport_Impl> mpImpl; // dummy
std::unique_ptr<SvXMLNamespaceMap> mpNamespaceMap;
std::unique_ptr<SvXMLUnitConverter> mpUnitConv;
SvXMLImportContexts_Impl maContexts;
FastSvXMLImportContexts_Impl maFastContexts;
std::unique_ptr<SvXMLNumFmtHelper> mpNumImport;
std::unique_ptr<ProgressBarHelper> mpProgressBarHelper;
std::unique_ptr<SvXMLNamespaceMap> mpNamespaceMap;
std::unique_ptr<SvXMLUnitConverter> mpUnitConv;
std::stack<SvXMLImportContextRef> maContexts;
std::stack<css::uno::Reference<css::xml::sax::XFastContextHandler>>
maFastContexts;
std::unique_ptr<SvXMLNumFmtHelper> mpNumImport;
std::unique_ptr<ProgressBarHelper> mpProgressBarHelper;
std::unique_ptr<XMLEventImportHelper> mpEventImportHelper;
std::unique_ptr<XMLErrors> mpXMLErrors;
rtl::Reference<StyleMap> mpStyleMap;
......
......@@ -62,9 +62,7 @@ typedef std::unordered_map<OString, bool, OStringHash>
enum class IdLevel { Null=0, Text=2, Identifier=5 };
typedef std::vector< OString > ExportList;
/// Purpose: holds mandatory data to export a single res (used with ResStack)
/// Purpose: holds mandatory data to export a single res
class ResData
{
public:
......@@ -92,7 +90,6 @@ enum class StringType {
};
typedef ::std::vector< ResData* > ResStack;
class ParserQueue;
// class MergeEntrys
......
......@@ -35,11 +35,9 @@ using namespace ::com::sun::star::uno;
namespace {
typedef ::cppu::WeakImplHelper< XInputStream > UnoBinaryInputStream_BASE;
/** Implementation of a UNO input stream wrapping a binary input stream.
*/
class UnoBinaryInputStream : public UnoBinaryInputStream_BASE
class UnoBinaryInputStream : public ::cppu::WeakImplHelper< XInputStream >
{
public:
explicit UnoBinaryInputStream( BinaryInputStream& rInStrm );
......
......@@ -935,10 +935,7 @@ EventListener::firing_Impl(const ScriptEvent& evt, Any* pRet )
}
}
typedef ::cppu::WeakImplHelper< XVBAToOOEventDescGen, css::lang::XServiceInfo > VBAToOOEventDescGen_BASE;
class VBAToOOEventDescGen : public VBAToOOEventDescGen_BASE
class VBAToOOEventDescGen : public ::cppu::WeakImplHelper< XVBAToOOEventDescGen, css::lang::XServiceInfo >
{
public:
VBAToOOEventDescGen();
......
......@@ -72,8 +72,6 @@ using namespace com::sun::star::lang;
typedef std::unordered_map<OUString, sal_Int32, OUStringHash> NameToHandleMap;
typedef std::unordered_map<sal_Int32, sal_Int32> EnumToHandleMap;
typedef std::set<OUString> VarNameSet;
// class SvtPathOptions_Impl ---------------------------------------------
......@@ -85,7 +83,8 @@ class SvtPathOptions_Impl
Reference< XFastPropertySet > m_xPathSettings;
Reference< XStringSubstitution > m_xSubstVariables;
Reference< XMacroExpander > m_xMacroExpander;
mutable EnumToHandleMap m_aMapEnumToPropHandle;
mutable std::unordered_map<sal_Int32, sal_Int32>
m_aMapEnumToPropHandle;
VarNameSet m_aSystemPathVarNames;
OUString m_aEmptyString;
......
......@@ -25,9 +25,7 @@
#include <cppuhelper/implbase.hxx>
typedef cppu::WeakImplHelper< ov::msforms::XNewFont > VbaNewFont_BASE;
class VbaNewFont : public VbaNewFont_BASE
class VbaNewFont : public cppu::WeakImplHelper< ov::msforms::XNewFont >
{
public:
/// @throws css::uno::RuntimeException
......
......@@ -23,8 +23,6 @@
#include <unordered_map>
typedef std::unordered_map< OString, GLuint, OStringHash > UniformCache;
enum class TextureShaderType
{
Normal = 0,
......@@ -44,7 +42,8 @@ class VCL_PLUGIN_PUBLIC OpenGLProgram
{
private:
GLuint mnId;
UniformCache maUniformLocations;
std::unordered_map< OString, GLuint, OStringHash >
maUniformLocations;
sal_uInt32 mnEnabledAttribs;
GLuint mnPositionAttrib;
GLuint mnTexCoordAttrib;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment