Minor cleanup of translator roster commit, updated copyright.

This commit is contained in:
Axel Dörfler
2015-11-13 11:37:15 +01:00
parent 07432f3975
commit be741f6ec1
5 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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:
+9 -4
View File
@@ -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();