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

sal,rsc,oox: inline some use-once typedefs

Change-Id: I91bebe06c5c5f3ebe5fbeec83dcf3f5bdf563201
üst 368a3e45
...@@ -53,8 +53,6 @@ private: ...@@ -53,8 +53,6 @@ private:
OUString msUuid; OUString msUuid;
}; };
typedef std::shared_ptr< TextField > TextFieldPtr;
} } } }
#endif #endif
......
...@@ -49,7 +49,7 @@ ConstraintListContext::onCreateContext( ::sal_Int32 aElement, ...@@ -49,7 +49,7 @@ ConstraintListContext::onCreateContext( ::sal_Int32 aElement,
{ {
case DGM_TOKEN( constr ): case DGM_TOKEN( constr ):
{ {
ConstraintAtomPtr pNode( new ConstraintAtom() ); boost::shared_ptr< ConstraintAtom > pNode( new ConstraintAtom() );
mpNode->addChild( pNode ); mpNode->addChild( pNode );
pNode->setFor( rAttribs.getToken( XML_for, XML_none ) ); pNode->setFor( rAttribs.getToken( XML_for, XML_none ) );
......
...@@ -147,8 +147,6 @@ private: ...@@ -147,8 +147,6 @@ private:
sal_Int32 mnOperator; sal_Int32 mnOperator;
}; };
typedef boost::shared_ptr< ConstraintAtom > ConstraintAtomPtr;
class AlgAtom class AlgAtom
: public LayoutAtom : public LayoutAtom
{ {
......
...@@ -73,7 +73,7 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken ...@@ -73,7 +73,7 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken
} }
case A_TOKEN( fld ): // "CT_TextField" Text Field. case A_TOKEN( fld ): // "CT_TextField" Text Field.
{ {
TextFieldPtr pField( new TextField ); std::shared_ptr< TextField > pField( new TextField );
mrParagraph.addRun( pField ); mrParagraph.addRun( pField );
return new TextFieldContext( *this, rAttribs, *pField ); return new TextFieldContext( *this, rAttribs, *pField );
} }
......
...@@ -92,14 +92,12 @@ using ::com::sun::star::drawing::TextVerticalAdjust; ...@@ -92,14 +92,12 @@ using ::com::sun::star::drawing::TextVerticalAdjust;
namespace { namespace {
typedef ::cppu::WeakImplHelper2< XPropertySet, XPropertySetInfo > GenericPropertySetBase;
/** This class implements a generic XPropertySet. /** This class implements a generic XPropertySet.
Properties of all names and types can be set and later retrieved. Properties of all names and types can be set and later retrieved.
TODO: move this to comphelper or better find an existing implementation TODO: move this to comphelper or better find an existing implementation
*/ */
class GenericPropertySet : public GenericPropertySetBase class GenericPropertySet : public ::cppu::WeakImplHelper2< XPropertySet, XPropertySetInfo >
{ {
public: public:
explicit GenericPropertySet( const PropertyMap& rPropMap ); explicit GenericPropertySet( const PropertyMap& rPropMap );
......
...@@ -48,12 +48,10 @@ using namespace ::com::sun::star::uno; ...@@ -48,12 +48,10 @@ using namespace ::com::sun::star::uno;
namespace { namespace {
typedef ::cppu::WeakImplHelper2< XSeekable, XOutputStream > OleOutputStreamBase;
/** Implementation of an OLE storage output stream that inserts itself into the /** Implementation of an OLE storage output stream that inserts itself into the
storage when it is closed. storage when it is closed.
*/ */
class OleOutputStream : public OleOutputStreamBase class OleOutputStream : public ::cppu::WeakImplHelper2< XSeekable, XOutputStream >
{ {
public: public:
explicit OleOutputStream( explicit OleOutputStream(
......
...@@ -53,9 +53,6 @@ struct WriteRcContext ...@@ -53,9 +53,6 @@ struct WriteRcContext
RscCmdLine* pCmdLine; RscCmdLine* pCmdLine;
}; };
// Liste die alle Basistypen enthaelt
typedef ::std::vector< RscTop* > RscBaseList;
// Tabelle fuer Systemabhaengige Resourcen // Tabelle fuer Systemabhaengige Resourcen
struct RscSysEntry struct RscSysEntry
{ {
...@@ -66,8 +63,6 @@ struct RscSysEntry ...@@ -66,8 +63,6 @@ struct RscSysEntry
sal_uInt32 nRefId; sal_uInt32 nRefId;
}; };
typedef ::std::vector< RscSysEntry* > RscSysList;
class RscTypCont class RscTypCont
{ {
rtl_TextEncoding nSourceCharSet; rtl_TextEncoding nSourceCharSet;
...@@ -84,8 +79,10 @@ class RscTypCont ...@@ -84,8 +79,10 @@ class RscTypCont
RscTop * pRoot; // Zeiger auf die Wurzel vom Typenbaum RscTop * pRoot; // Zeiger auf die Wurzel vom Typenbaum
RSCINST aVersion; // Versionskontrollinstanz RSCINST aVersion; // Versionskontrollinstanz
RscBaseList aBaseLst; // Liste der einfachen Resourceklasse ::std::vector< RscTop* >
RscSysList aSysLst; // Liste der Systemresourcen aBaseLst; // Liste der einfachen Resourceklasse
::std::vector< RscSysEntry* >
aSysLst; // Liste der Systemresourcen
Atom nWinBitVarId; // Name der Winbitvariablen Atom nWinBitVarId; // Name der Winbitvariablen
Atom nBorderId; Atom nBorderId;
......
...@@ -222,7 +222,6 @@ public: ...@@ -222,7 +222,6 @@ public:
bool IsIncFile(){ return bIncFile; }; bool IsIncFile(){ return bIncFile; };
}; };
typedef UniqueIndex<RscFile> RscSubFileTab;
#define NOFILE_INDEX UNIQUEINDEX_ENTRY_NOTFOUND #define NOFILE_INDEX UNIQUEINDEX_ENTRY_NOTFOUND
class RscDefTree class RscDefTree
...@@ -238,7 +237,7 @@ public: ...@@ -238,7 +237,7 @@ public:
void Remove( RscDefine * pDef ); void Remove( RscDefine * pDef );
}; };
class RscFileTab : public RscSubFileTab class RscFileTab : public UniqueIndex<RscFile>
{ {
RscDefTree aDefTree; RscDefTree aDefTree;
sal_uLong Find(const OString& rName); sal_uLong Find(const OString& rName);
......
...@@ -94,8 +94,6 @@ inline ::rtl::OUString getExecutablePath() ...@@ -94,8 +94,6 @@ inline ::rtl::OUString getExecutablePath()
//rtl::OUString CWD = getExecutablePath(); //rtl::OUString CWD = getExecutablePath();
typedef std::vector<OString> string_container_t; typedef std::vector<OString> string_container_t;
typedef string_container_t::const_iterator string_container_const_iter_t;
typedef string_container_t::iterator string_container_iter_t;
class exclude : public std::unary_function<OString, bool> class exclude : public std::unary_function<OString, bool>
{ {
...@@ -103,8 +101,8 @@ public: ...@@ -103,8 +101,8 @@ public:
exclude(const string_container_t& exclude_list) exclude(const string_container_t& exclude_list)
{ {
string_container_const_iter_t iter = exclude_list.begin(); string_container_t::const_iterator iter = exclude_list.begin();
string_container_const_iter_t iter_end = exclude_list.end(); string_container_t::const_iterator iter_end = exclude_list.end();
for (/**/; iter != iter_end; ++iter) for (/**/; iter != iter_end; ++iter)
exclude_list_.push_back(env_var_name(*iter)); exclude_list_.push_back(env_var_name(*iter));
} }
...@@ -307,7 +305,7 @@ public: ...@@ -307,7 +305,7 @@ public:
//are different to the parent environment (they come first) //are different to the parent environment (they come first)
//and the variables that should be equal between parent //and the variables that should be equal between parent
//and child environment //and child environment
string_container_iter_t iter_logical_end = string_container_t::iterator iter_logical_end =
std::stable_partition(child_env.begin(), child_env.end(), exclude(different_env_vars)); std::stable_partition(child_env.begin(), child_env.end(), exclude(different_env_vars));
string_container_t different_child_env_vars(child_env.begin(), iter_logical_end); string_container_t different_child_env_vars(child_env.begin(), iter_logical_end);
......
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