diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-07 11:26:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-08 15:16:47 +0200 |
commit | 482f97926e1090c50ef05eed6badf311a7aa02f9 (patch) | |
tree | f2c8534cd0d3446b36f7d9d49c4cbc17ac6ac92a /svtools/source/toolpanel/refbase.cxx | |
parent | 4861e4961f7dc4f28a14c5f9d9b969456bfec720 (diff) |
use SimpleReferenceObject in svtools module
to replace hand-rolled version
Change-Id: I7a1048ff1ea335c3934fe7e91a09489a4d7aeb96
Diffstat (limited to 'svtools/source/toolpanel/refbase.cxx')
-rw-r--r-- | svtools/source/toolpanel/refbase.cxx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/svtools/source/toolpanel/refbase.cxx b/svtools/source/toolpanel/refbase.cxx deleted file mode 100644 index 4ff9969330c6..000000000000 --- a/svtools/source/toolpanel/refbase.cxx +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - - -#include <svtools/toolpanel/refbase.hxx> - - -namespace svt -{ - - - - //= RefBase - - - oslInterlockedCount SAL_CALL RefBase::acquire() - { - return osl_atomic_increment( &m_refCount ); - } - - - oslInterlockedCount SAL_CALL RefBase::release() - { - oslInterlockedCount newCount = osl_atomic_decrement( &m_refCount ); - if ( 0 == newCount ) - delete this; - return newCount; - } - - -} // namespace svt - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |