зеркало из https://github.com/mozilla/gecko-dev.git
Bug 230244 mozilla\xpinstall\src\nsInstall.cpp(2386) : warning C4930: 'nsString usr(void)': prototyped function not called (was a variable definition intended?)
r=bsmedberg sr=tor
This commit is contained in:
Родитель
e406e27d5c
Коммит
977260b591
|
@ -2383,25 +2383,16 @@ nsInstall::GetQualifiedRegName(const nsString& name, nsString& qualifiedRegName
|
|||
nsString startOfName;
|
||||
name.Left(startOfName, 7);
|
||||
|
||||
nsString usr ();
|
||||
|
||||
if ( startOfName.Equals(NS_LITERAL_STRING("=COMM=/")) || startOfName.Equals(NS_LITERAL_STRING("=USER=/")))
|
||||
{
|
||||
qualifiedRegName = name;
|
||||
qualifiedRegName.Cut( 0, 7 );
|
||||
qualifiedRegName = startOfName;
|
||||
}
|
||||
else if ( name.CharAt(0) != '/' )
|
||||
else if (name.CharAt(0) != '/' &&
|
||||
!mRegistryPackageName.IsEmpty())
|
||||
{
|
||||
if (!mRegistryPackageName.IsEmpty())
|
||||
{
|
||||
qualifiedRegName = mRegistryPackageName;
|
||||
qualifiedRegName.Append(NS_LITERAL_STRING("/"));
|
||||
qualifiedRegName += name;
|
||||
}
|
||||
else
|
||||
{
|
||||
qualifiedRegName = name;
|
||||
}
|
||||
qualifiedRegName = mRegistryPackageName
|
||||
+ NS_LITERAL_STRING("/")
|
||||
+ name;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче