sw a11y: clang-format SidebarWinAccessible code
[LibreOffice.git] / vcl / source / graphic / BinaryDataContainerTools.cxx
blobc643803313565636a6a14a0c50679628de775506
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #include <vcl/BinaryDataContainerTools.hxx>
12 #include <graphic/UnoBinaryDataContainer.hxx>
14 namespace vcl
16 BinaryDataContainer convertUnoBinaryDataContainer(
17 const css::uno::Reference<css::util::XBinaryDataContainer>& rxBinaryDataContainer)
19 BinaryDataContainer aBinaryDataContainer;
20 UnoBinaryDataContainer* pUnoBinaryDataContainer
21 = dynamic_cast<UnoBinaryDataContainer*>(rxBinaryDataContainer.get());
22 if (pUnoBinaryDataContainer)
23 aBinaryDataContainer = pUnoBinaryDataContainer->getBinaryDataContainer();
24 return aBinaryDataContainer;
28 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */