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. * Distributed under the terms of the MIT License.
*/ */
#ifndef _TRANSLATOR_ROSTER_H #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. * Distributed under the terms of the MIT License.
* *
* Authors: * 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. * 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();