Minor cleanup of translator roster commit, updated copyright.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2009, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2015, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _TRANSLATOR_ROSTER_H
|
#ifndef _TRANSLATOR_ROSTER_H
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2006, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2015, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2009, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2015, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* Michael Wilber
|
|
||||||
* Axel Dörfler, [email protected]
|
* Axel Dörfler, [email protected]
|
||||||
|
* Markus Himmel, [email protected]
|
||||||
|
* Michael Wilber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -878,14 +879,14 @@ BTranslatorRoster::Private::_TranslatorDeleted(translator_id id, BTranslator* se
|
|||||||
delete self;
|
delete self;
|
||||||
|
|
||||||
int32 former = atomic_add(&fKnownImages[image], -1);
|
int32 former = atomic_add(&fKnownImages[image], -1);
|
||||||
if (former == 1)
|
if (former == 1) {
|
||||||
{
|
|
||||||
unload_add_on(image);
|
unload_add_on(image);
|
||||||
fImageOrigins.erase(self);
|
fImageOrigins.erase(self);
|
||||||
fKnownImages.erase(image);
|
fKnownImages.erase(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*static*/ int
|
/*static*/ int
|
||||||
BTranslatorRoster::Private::_CompareSupport(const void* _a, const void* _b)
|
BTranslatorRoster::Private::_CompareSupport(const void* _a, const void* _b)
|
||||||
{
|
{
|
||||||
@@ -1166,6 +1167,7 @@ BTranslatorRoster::Private::_NotifyListeners(BMessage& update) const
|
|||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
BTranslatorReleaseDelegate::BTranslatorReleaseDelegate(BTranslator* translator)
|
BTranslatorReleaseDelegate::BTranslatorReleaseDelegate(BTranslator* translator)
|
||||||
:
|
:
|
||||||
fUnderlying(translator)
|
fUnderlying(translator)
|
||||||
@@ -1182,6 +1184,9 @@ BTranslatorReleaseDelegate::Release()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
BTranslatorRoster::BTranslatorRoster()
|
BTranslatorRoster::BTranslatorRoster()
|
||||||
{
|
{
|
||||||
_Initialize();
|
_Initialize();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2009, Haiku, Inc. All Rights Reserved.
|
* Copyright 2006-2015, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Author:
|
* Author:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2007, Haiku, Inc.
|
* Copyright 2002-2015, Haiku, Inc.
|
||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -20,8 +20,10 @@
|
|||||||
|
|
||||||
#include "TranslatorListView.h"
|
#include "TranslatorListView.h"
|
||||||
|
|
||||||
|
|
||||||
class BTranslatorReleaseDelegate;
|
class BTranslatorReleaseDelegate;
|
||||||
|
|
||||||
|
|
||||||
class DataTranslationsWindow : public BWindow {
|
class DataTranslationsWindow : public BWindow {
|
||||||
public:
|
public:
|
||||||
DataTranslationsWindow();
|
DataTranslationsWindow();
|
||||||
|
|||||||
Reference in New Issue
Block a user