mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
Bug 1487082 - Resolve potential for build bustage regarding bad implicit conversion constructors
* Part 1: make conversion CTORs explicit. Minor tweaks to conform with new(ish) static analysis rule which flags up implicit single-argument conversion constructors. * Part 2: fix a couple of double-mRefCnt declaration errors. * Part 3: Fix unsafe use of NS_ConvertASCIItoUTF16(). Tag #1273
This commit is contained in:
parent
73af2ce033
commit
eaac1c967d
57 changed files with 71 additions and 69 deletions
|
|
@ -242,7 +242,7 @@ NS_IMETHODIMP nsAbBSDirectory::DeleteDirectory(nsIAbDirectory *directory)
|
|||
|
||||
struct GetDirectories
|
||||
{
|
||||
GetDirectories(DIR_Server* aServer) : mServer(aServer) { }
|
||||
explicit GetDirectories(DIR_Server* aServer) : mServer(aServer) { }
|
||||
|
||||
nsCOMArray<nsIAbDirectory> directories;
|
||||
DIR_Server* mServer;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class nsAbMDBDirProperty: public nsIAbMDBDirectory, public nsAbDirProperty
|
|||
public:
|
||||
nsAbMDBDirProperty(void);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_NSIABMDBDIRECTORY
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
class CharPtrArrayGuard
|
||||
{
|
||||
public:
|
||||
CharPtrArrayGuard (bool freeElements = true) :
|
||||
explicit CharPtrArrayGuard (bool freeElements = true) :
|
||||
mFreeElements (freeElements),
|
||||
mArray (0),
|
||||
mSize (0)
|
||||
|
|
@ -80,7 +80,7 @@ private:
|
|||
class PRUnicharPtrArrayGuard
|
||||
{
|
||||
public:
|
||||
PRUnicharPtrArrayGuard (bool freeElements = true) :
|
||||
explicit PRUnicharPtrArrayGuard (bool freeElements = true) :
|
||||
mFreeElements (freeElements),
|
||||
mArray (0),
|
||||
mSize (0)
|
||||
|
|
|
|||
|
|
@ -2507,7 +2507,7 @@ public:
|
|||
NS_DECL_NSIADDRDBLISTENER
|
||||
// nsAddrDBEnumerator methods:
|
||||
|
||||
nsAddrDBEnumerator(nsAddrDatabase* aDb);
|
||||
explicit nsAddrDBEnumerator(nsAddrDatabase* aDb);
|
||||
void Clear();
|
||||
protected:
|
||||
virtual ~nsAddrDBEnumerator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue