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.
|
||||
*/
|
||||
#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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Authors:
|
||||
* Michael Wilber
|
||||
* 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;
|
||||
|
||||
int32 former = atomic_add(&fKnownImages[image], -1);
|
||||
if (former == 1)
|
||||
{
|
||||
if (former == 1) {
|
||||
unload_add_on(image);
|
||||
fImageOrigins.erase(self);
|
||||
fKnownImages.erase(image);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*static*/ int
|
||||
BTranslatorRoster::Private::_CompareSupport(const void* _a, const void* _b)
|
||||
{
|
||||
@@ -1166,6 +1167,7 @@ BTranslatorRoster::Private::_NotifyListeners(BMessage& update) const
|
||||
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
BTranslatorReleaseDelegate::BTranslatorReleaseDelegate(BTranslator* translator)
|
||||
:
|
||||
fUnderlying(translator)
|
||||
@@ -1182,6 +1184,9 @@ BTranslatorReleaseDelegate::Release()
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
BTranslatorRoster::BTranslatorRoster()
|
||||
{
|
||||
_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.
|
||||
*
|
||||
* Author:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2007, Haiku, Inc.
|
||||
* Copyright 2002-2015, Haiku, Inc.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*
|
||||
* Authors:
|
||||
@@ -20,8 +20,10 @@
|
||||
|
||||
#include "TranslatorListView.h"
|
||||
|
||||
|
||||
class BTranslatorReleaseDelegate;
|
||||
|
||||
|
||||
class DataTranslationsWindow : public BWindow {
|
||||
public:
|
||||
DataTranslationsWindow();
|
||||
|
||||
Reference in New Issue
Block a user