Bug 1061060 - Fix more bad implicit constructors in parser; r=hsivonen
This commit is contained in:
@@ -21,7 +21,7 @@ class nsHtml5Atom MOZ_FINAL : public nsIAtom
|
|||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
NS_DECL_NSIATOM
|
NS_DECL_NSIATOM
|
||||||
|
|
||||||
nsHtml5Atom(const nsAString& aString);
|
explicit nsHtml5Atom(const nsAString& aString);
|
||||||
~nsHtml5Atom();
|
~nsHtml5Atom();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class MOZ_STACK_CLASS nsHtml5DependentUTF16Buffer : public nsHtml5UTF16Buffer
|
|||||||
* Wraps a string without taking ownership of the buffer. aToWrap MUST NOT
|
* Wraps a string without taking ownership of the buffer. aToWrap MUST NOT
|
||||||
* go away or be shortened while nsHtml5DependentUTF16Buffer is in use.
|
* go away or be shortened while nsHtml5DependentUTF16Buffer is in use.
|
||||||
*/
|
*/
|
||||||
nsHtml5DependentUTF16Buffer(const nsAString& aToWrap);
|
explicit nsHtml5DependentUTF16Buffer(const nsAString& aToWrap);
|
||||||
|
|
||||||
~nsHtml5DependentUTF16Buffer();
|
~nsHtml5DependentUTF16Buffer();
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class nsHtml5Highlighter
|
|||||||
*
|
*
|
||||||
* @param aOpSink the sink for the tree ops generated by this highlighter
|
* @param aOpSink the sink for the tree ops generated by this highlighter
|
||||||
*/
|
*/
|
||||||
nsHtml5Highlighter(nsAHtml5TreeOpSink* aOpSink);
|
explicit nsHtml5Highlighter(nsAHtml5TreeOpSink* aOpSink);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor.
|
* The destructor.
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ class nsHtml5ParserThreadTerminator MOZ_FINAL : public nsIObserver
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
nsHtml5ParserThreadTerminator(nsIThread* aThread)
|
explicit nsHtml5ParserThreadTerminator(nsIThread* aThread)
|
||||||
: mThread(aThread)
|
: mThread(aThread)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Observe(nsISupports *, const char *topic, const char16_t *)
|
NS_IMETHODIMP Observe(nsISupports *, const char *topic, const char16_t *)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
class nsHtml5ReleasableElementName MOZ_FINAL : public nsHtml5ElementName
|
class nsHtml5ReleasableElementName MOZ_FINAL : public nsHtml5ElementName
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsHtml5ReleasableElementName(nsIAtom* name);
|
explicit nsHtml5ReleasableElementName(nsIAtom* name);
|
||||||
virtual void release();
|
virtual void release();
|
||||||
virtual nsHtml5ElementName* cloneElementName(nsHtml5AtomTable* interner);
|
virtual nsHtml5ElementName* cloneElementName(nsHtml5AtomTable* interner);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class nsHtml5SVGLoadDispatcher : public nsRunnable
|
|||||||
nsCOMPtr<nsIContent> mElement;
|
nsCOMPtr<nsIContent> mElement;
|
||||||
nsCOMPtr<nsIDocument> mDocument;
|
nsCOMPtr<nsIDocument> mDocument;
|
||||||
public:
|
public:
|
||||||
nsHtml5SVGLoadDispatcher(nsIContent* aElement);
|
explicit nsHtml5SVGLoadDispatcher(nsIContent* aElement);
|
||||||
NS_IMETHOD Run();
|
NS_IMETHOD Run();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class nsHtml5ExecutorFlusher : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
||||||
public:
|
public:
|
||||||
nsHtml5ExecutorFlusher(nsHtml5TreeOpExecutor* aExecutor)
|
explicit nsHtml5ExecutorFlusher(nsHtml5TreeOpExecutor* aExecutor)
|
||||||
: mExecutor(aExecutor)
|
: mExecutor(aExecutor)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
@@ -134,7 +134,7 @@ class nsHtml5LoadFlusher : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
||||||
public:
|
public:
|
||||||
nsHtml5LoadFlusher(nsHtml5TreeOpExecutor* aExecutor)
|
explicit nsHtml5LoadFlusher(nsHtml5TreeOpExecutor* aExecutor)
|
||||||
: mExecutor(aExecutor)
|
: mExecutor(aExecutor)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
@@ -1024,7 +1024,7 @@ class nsHtml5RequestStopper : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
||||||
public:
|
public:
|
||||||
nsHtml5RequestStopper(nsHtml5StreamParser* aStreamParser)
|
explicit nsHtml5RequestStopper(nsHtml5StreamParser* aStreamParser)
|
||||||
: mStreamParser(aStreamParser)
|
: mStreamParser(aStreamParser)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
@@ -1410,7 +1410,7 @@ class nsHtml5StreamParserContinuation : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
||||||
public:
|
public:
|
||||||
nsHtml5StreamParserContinuation(nsHtml5StreamParser* aStreamParser)
|
explicit nsHtml5StreamParserContinuation(nsHtml5StreamParser* aStreamParser)
|
||||||
: mStreamParser(aStreamParser)
|
: mStreamParser(aStreamParser)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
@@ -1575,7 +1575,7 @@ class nsHtml5TimerKungFu : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
nsHtml5RefPtr<nsHtml5StreamParser> mStreamParser;
|
||||||
public:
|
public:
|
||||||
nsHtml5TimerKungFu(nsHtml5StreamParser* aStreamParser)
|
explicit nsHtml5TimerKungFu(nsHtml5StreamParser* aStreamParser)
|
||||||
: mStreamParser(aStreamParser)
|
: mStreamParser(aStreamParser)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
nsHtml5TreeBuilder(nsHtml5OplessBuilder* aBuilder);
|
explicit nsHtml5TreeBuilder(nsHtml5OplessBuilder* aBuilder);
|
||||||
|
|
||||||
nsHtml5TreeBuilder(nsAHtml5TreeOpSink* aOpSink,
|
nsHtml5TreeBuilder(nsAHtml5TreeOpSink* aOpSink,
|
||||||
nsHtml5TreeOpStage* aStage);
|
nsHtml5TreeOpStage* aStage);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class nsHtml5ExecutorReflusher : public nsRunnable
|
|||||||
private:
|
private:
|
||||||
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
nsRefPtr<nsHtml5TreeOpExecutor> mExecutor;
|
||||||
public:
|
public:
|
||||||
nsHtml5ExecutorReflusher(nsHtml5TreeOpExecutor* aExecutor)
|
explicit nsHtml5ExecutorReflusher(nsHtml5TreeOpExecutor* aExecutor)
|
||||||
: mExecutor(aExecutor)
|
: mExecutor(aExecutor)
|
||||||
{}
|
{}
|
||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
@@ -305,7 +305,7 @@ class nsHtml5FlushLoopGuard
|
|||||||
uint32_t mStartTime;
|
uint32_t mStartTime;
|
||||||
#endif
|
#endif
|
||||||
public:
|
public:
|
||||||
nsHtml5FlushLoopGuard(nsHtml5TreeOpExecutor* aExecutor)
|
explicit nsHtml5FlushLoopGuard(nsHtml5TreeOpExecutor* aExecutor)
|
||||||
: mExecutor(aExecutor)
|
: mExecutor(aExecutor)
|
||||||
#ifdef DEBUG_NS_HTML5_TREE_OP_EXECUTOR_FLUSH
|
#ifdef DEBUG_NS_HTML5_TREE_OP_EXECUTOR_FLUSH
|
||||||
, mStartTime(PR_IntervalToMilliseconds(PR_IntervalNow()))
|
, mStartTime(PR_IntervalToMilliseconds(PR_IntervalNow()))
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class nsParserContinueEvent : public nsRunnable
|
|||||||
public:
|
public:
|
||||||
nsRefPtr<nsParser> mParser;
|
nsRefPtr<nsParser> mParser;
|
||||||
|
|
||||||
nsParserContinueEvent(nsParser* aParser)
|
explicit nsParserContinueEvent(nsParser* aParser)
|
||||||
: mParser(aParser)
|
: mParser(aParser)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class nsScanner {
|
|||||||
/**
|
/**
|
||||||
* Use this constructor for the XML fragment parsing case
|
* Use this constructor for the XML fragment parsing case
|
||||||
*/
|
*/
|
||||||
nsScanner(const nsAString& anHTMLString);
|
explicit nsScanner(const nsAString& anHTMLString);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this constructor if you want i/o to be based on
|
* Use this constructor if you want i/o to be based on
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class nsScannerBufferList
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
Position( const nsScannerIterator& aIter );
|
explicit Position( const nsScannerIterator& aIter );
|
||||||
|
|
||||||
inline
|
inline
|
||||||
Position& operator=( const nsScannerIterator& aIter );
|
Position& operator=( const nsScannerIterator& aIter );
|
||||||
@@ -124,7 +124,7 @@ class nsScannerBufferList
|
|||||||
static Buffer* AllocBufferFromString( const nsAString& );
|
static Buffer* AllocBufferFromString( const nsAString& );
|
||||||
static Buffer* AllocBuffer( uint32_t capacity ); // capacity = number of chars
|
static Buffer* AllocBuffer( uint32_t capacity ); // capacity = number of chars
|
||||||
|
|
||||||
nsScannerBufferList( Buffer* buf )
|
explicit nsScannerBufferList( Buffer* buf )
|
||||||
: mRefCnt(0)
|
: mRefCnt(0)
|
||||||
{
|
{
|
||||||
mBuffers.insertBack(buf);
|
mBuffers.insertBack(buf);
|
||||||
@@ -184,7 +184,7 @@ class nsScannerSubstring
|
|||||||
typedef uint32_t size_type;
|
typedef uint32_t size_type;
|
||||||
|
|
||||||
nsScannerSubstring();
|
nsScannerSubstring();
|
||||||
nsScannerSubstring( const nsAString& s );
|
explicit nsScannerSubstring( const nsAString& s );
|
||||||
|
|
||||||
~nsScannerSubstring();
|
~nsScannerSubstring();
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ class nsScannerString : public nsScannerSubstring
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
nsScannerString( Buffer* );
|
explicit nsScannerString( Buffer* );
|
||||||
|
|
||||||
// you are giving ownership to the string, it takes and keeps your
|
// you are giving ownership to the string, it takes and keeps your
|
||||||
// buffer, deleting it when done.
|
// buffer, deleting it when done.
|
||||||
|
|||||||
Reference in New Issue
Block a user