mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 16:57:36 +00:00
get rid of local mail's implementation of GetName
This commit is contained in:
parent
0f5d4fd37b
commit
ef175cd013
@ -776,36 +776,6 @@ NS_IMETHODIMP nsMsgLocalMailFolder::Adopt(nsIMsgFolder *srcFolder, PRUint32 *out
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsMsgLocalMailFolder::GetName(PRUnichar **name)
|
||||
{
|
||||
if(!name)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (!mHaveReadNameFromDB)
|
||||
{
|
||||
if (mDepth == 1)
|
||||
{
|
||||
nsString localMailStr("Local Mail");
|
||||
SetName((PRUnichar *) localMailStr.GetUnicode());
|
||||
mHaveReadNameFromDB = TRUE;
|
||||
*name = mName.ToNewUnicode();
|
||||
if(!(*name))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
return NS_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Need to read the name from the database
|
||||
}
|
||||
}
|
||||
nsAutoString folderName;
|
||||
nsLocalURI2Name(kMailboxRootURI, mURI, folderName);
|
||||
*name = folderName.ToNewUnicode();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgLocalMailFolder::GetPrettyName(PRUnichar ** prettyName)
|
||||
{
|
||||
if (mDepth == 1) {
|
||||
|
@ -93,8 +93,6 @@ public:
|
||||
NS_IMETHOD Rename (const char *newName);
|
||||
NS_IMETHOD Adopt(nsIMsgFolder *srcFolder, PRUint32 *outPos);
|
||||
|
||||
// this override pulls the value from the db
|
||||
NS_IMETHOD GetName(PRUnichar ** name); // Name of this folder (as presented to user).
|
||||
NS_IMETHOD GetPrettyName(PRUnichar** prettyName); // Override of the base, for top-level mail folder
|
||||
|
||||
NS_IMETHOD BuildFolderURL(char **url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user