drop 'using namespace std' in desktop, e*, f*
Change-Id: I277dc957798093001f9a3935f97db8ac0314e6a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123022 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
f7a456af92
commit
7e7dd7f152
11 changed files with 8 additions and 22 deletions
|
@ -56,7 +56,6 @@
|
|||
#include <vcl/commandinfoprovider.hxx>
|
||||
|
||||
using namespace osl;
|
||||
using namespace std;
|
||||
using namespace com::sun::star::task;
|
||||
using namespace com::sun::star::lang;
|
||||
using namespace com::sun::star::beans;
|
||||
|
|
|
@ -68,7 +68,6 @@
|
|||
#include "AccessibleImageBullet.hxx"
|
||||
|
||||
#include <svtools/colorcfg.hxx>
|
||||
using namespace std;
|
||||
#include <editeng/editrids.hrc>
|
||||
#include <editeng/eerdll.hxx>
|
||||
#include <editeng/numitem.hxx>
|
||||
|
@ -1276,7 +1275,7 @@ namespace accessibility
|
|||
sal_Int32 i = 0;
|
||||
for( i = 0; i < nLength; i++ )
|
||||
pIndices[i] = i;
|
||||
sort( &pIndices[0], &pIndices[nLength], IndexCompare(pPairs) );
|
||||
std::sort( &pIndices[0], &pIndices[nLength], IndexCompare(pPairs) );
|
||||
// create sorted sequences according to index array
|
||||
uno::Sequence<beans::PropertyValue> aNewValues( nLength );
|
||||
beans::PropertyValue* pNewValues = aNewValues.getArray();
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
namespace editeng
|
||||
{
|
||||
|
||||
using namespace std;
|
||||
|
||||
/* TrieNode */
|
||||
|
||||
struct TrieNode final
|
||||
|
@ -36,7 +34,7 @@ struct TrieNode final
|
|||
TrieNode* traversePath(const OUString& sPath);
|
||||
void addNewChild(TrieNode* pChild);
|
||||
void collectSuggestions(std::u16string_view sPath, std::vector<OUString>& rSuggestionList);
|
||||
static void collectSuggestionsForCurrentNode(TrieNode* pCurrent, std::u16string_view sPath, vector<OUString>& rSuggestionList);
|
||||
static void collectSuggestionsForCurrentNode(TrieNode* pCurrent, std::u16string_view sPath, std::vector<OUString>& rSuggestionList);
|
||||
};
|
||||
|
||||
TrieNode::TrieNode(sal_Unicode aCharacter) :
|
||||
|
@ -84,7 +82,7 @@ TrieNode* TrieNode::findChild(sal_Unicode aInputCharacter)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
void TrieNode::collectSuggestions(std::u16string_view sPath, vector<OUString>& rSuggestionList)
|
||||
void TrieNode::collectSuggestions(std::u16string_view sPath, std::vector<OUString>& rSuggestionList)
|
||||
{
|
||||
// first traverse nodes for alphabet characters
|
||||
for (auto const & pCurrent : mLatinArray)
|
||||
|
@ -101,7 +99,7 @@ void TrieNode::collectSuggestions(std::u16string_view sPath, vector<OUString>& r
|
|||
}
|
||||
}
|
||||
|
||||
void TrieNode::collectSuggestionsForCurrentNode(TrieNode* pCurrent, std::u16string_view sPath, vector<OUString>& rSuggestionList)
|
||||
void TrieNode::collectSuggestionsForCurrentNode(TrieNode* pCurrent, std::u16string_view sPath, std::vector<OUString>& rSuggestionList)
|
||||
{
|
||||
OUString aStringPath = sPath + OUStringChar(pCurrent->mCharacter);
|
||||
if(pCurrent->mMarker)
|
||||
|
@ -168,7 +166,7 @@ void Trie::insert(const OUString& sInputString) const
|
|||
pCurrent->markWord();
|
||||
}
|
||||
|
||||
void Trie::findSuggestions(const OUString& sWordPart, vector<OUString>& rSuggestionList) const
|
||||
void Trie::findSuggestions(const OUString& sWordPart, std::vector<OUString>& rSuggestionList) const
|
||||
{
|
||||
TrieNode* pNode = mRoot->traversePath(sWordPart);
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
#include <vcl/pngwrite.hxx>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
// GDI-Array
|
||||
|
||||
#define EMR_HEADER 1
|
||||
|
|
|
@ -32,7 +32,6 @@ using namespace com::sun::star::io;
|
|||
using namespace com::sun::star::beans;
|
||||
using namespace com::sun::star::xml::sax;
|
||||
using namespace com::sun::star;
|
||||
using namespace std;
|
||||
|
||||
TypeDetectionImporter::TypeDetectionImporter()
|
||||
{
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
using xforms::Convert;
|
||||
using com::sun::star::uno::Any;
|
||||
using com::sun::star::uno::makeAny;
|
||||
using namespace std;
|
||||
using namespace utl;
|
||||
|
||||
Convert::Convert()
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
using com::sun::star::uno::Reference;
|
||||
using com::sun::star::xml::dom::XNode;
|
||||
using com::sun::star::xml::dom::XNodeList;
|
||||
using namespace std;
|
||||
|
||||
|
||||
namespace xforms
|
||||
|
|
|
@ -36,7 +36,6 @@ using namespace css::task;
|
|||
using namespace css::io;
|
||||
using namespace osl;
|
||||
using namespace ucbhelper;
|
||||
using namespace std;
|
||||
|
||||
|
||||
CSubmissionGet::CSubmissionGet(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment)
|
||||
|
|
|
@ -34,7 +34,6 @@ using namespace css::task;
|
|||
using namespace css::io;
|
||||
using namespace osl;
|
||||
using namespace ucbhelper;
|
||||
using namespace std;
|
||||
|
||||
|
||||
CSubmissionPost::CSubmissionPost(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment)
|
||||
|
@ -46,7 +45,7 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const css::uno::Reference<
|
|||
{
|
||||
// PUT always uses application/xml
|
||||
css::uno::Reference< XCommandEnvironment > aEnvironment;
|
||||
unique_ptr< CSerialization > apSerialization(createSerialization(aInteractionHandler,aEnvironment));
|
||||
std::unique_ptr< CSerialization > apSerialization(createSerialization(aInteractionHandler,aEnvironment));
|
||||
|
||||
try {
|
||||
ucbhelper::Content aContent(m_aURLObj.GetMainURL(INetURLObject::DecodeMechanism::NONE), aEnvironment, comphelper::getProcessComponentContext());
|
||||
|
|
|
@ -33,7 +33,6 @@ using namespace css::task;
|
|||
using namespace css::io;
|
||||
using namespace osl;
|
||||
using namespace ucbhelper;
|
||||
using namespace std;
|
||||
|
||||
|
||||
CSubmissionPut::CSubmissionPut(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment)
|
||||
|
@ -44,7 +43,7 @@ CSubmissionPut::CSubmissionPut(const OUString& aURL, const css::uno::Reference<
|
|||
CSubmission::SubmissionResult CSubmissionPut::submit(const css::uno::Reference< css::task::XInteractionHandler >& aInteractionHandler)
|
||||
{
|
||||
css::uno::Reference< XCommandEnvironment > aEnvironment;
|
||||
unique_ptr< CSerialization > apSerialization(createSerialization(aInteractionHandler,aEnvironment));
|
||||
std::unique_ptr< CSerialization > apSerialization(createSerialization(aInteractionHandler,aEnvironment));
|
||||
|
||||
try {
|
||||
ucbhelper::Content aContent(m_aURLObj.GetMainURL(INetURLObject::DecodeMechanism::NONE), aEnvironment, comphelper::getProcessComponentContext());
|
||||
|
|
|
@ -45,8 +45,6 @@ using namespace css::frame;
|
|||
using namespace css::beans;
|
||||
using namespace css::util;
|
||||
|
||||
using namespace std;
|
||||
|
||||
static bool lcl_I18nCompareString(const OUString& rStr1, const OUString& rStr2)
|
||||
{
|
||||
const vcl::I18nHelper& rI18nHelper = Application::GetSettings().GetUILocaleI18nHelper();
|
||||
|
@ -97,7 +95,7 @@ void FontMenuController::fillPopupMenu( const Sequence< OUString >& rFontNameSeq
|
|||
if ( !pVCLPopupMenu )
|
||||
return;
|
||||
|
||||
vector<OUString> aVector;
|
||||
std::vector<OUString> aVector;
|
||||
aVector.reserve(rFontNameSeq.getLength());
|
||||
for ( OUString const & s : rFontNameSeq )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue