Skip to content

Commit

Permalink
Minor cleanup of translator roster commit, updated copyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
axeld committed Nov 13, 2015
1 parent 07432f3 commit be741f6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion headers/os/translation/TranslatorRoster.h
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/kits/translation/Translator.cpp
@@ -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:
Expand Down
13 changes: 9 additions & 4 deletions src/kits/translation/TranslatorRoster.cpp
@@ -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, axeld@pinc-software.de
* Markus Himmel, markus@himmel-villmar.de
* Michael Wilber
*/

/*!
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -1166,6 +1167,7 @@ BTranslatorRoster::Private::_NotifyListeners(BMessage& update) const

// #pragma mark -


BTranslatorReleaseDelegate::BTranslatorReleaseDelegate(BTranslator* translator)
:
fUnderlying(translator)
Expand All @@ -1182,6 +1184,9 @@ BTranslatorReleaseDelegate::Release()
}


// #pragma mark -


BTranslatorRoster::BTranslatorRoster()
{
_Initialize();
Expand Down
2 changes: 1 addition & 1 deletion src/kits/translation/TranslatorRosterPrivate.h
@@ -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:
Expand Down
4 changes: 3 additions & 1 deletion src/preferences/datatranslations/DataTranslationsWindow.h
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007, Haiku, Inc.
* Copyright 2002-2015, Haiku, Inc.
* Distributed under the terms of the MIT license.
*
* Authors:
Expand All @@ -20,8 +20,10 @@

#include "TranslatorListView.h"


class BTranslatorReleaseDelegate;


class DataTranslationsWindow : public BWindow {
public:
DataTranslationsWindow();
Expand Down

0 comments on commit be741f6

Please sign in to comment.