summaryrefslogtreecommitdiff
path: root/vcl/source/window/debug.cxx
blob: 34645692383df64a6e1c204cfe4c08ae8aa8bc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- 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 <vcl/window.hxx>
#include <tools/debug.hxx>

#include <window.h>

#ifdef DBG_UTIL
const char* ImplDbgCheckWindow(const void* pObj)
{
    DBG_TESTSOLARMUTEX();

    const vcl::Window* pWindow = static_cast<vcl::Window const*>(pObj);

    if ((pWindow->GetType() < WindowType::FIRST) || (pWindow->GetType() > WindowType::LAST))
        return "Window data overwrite";

    // check window-chain
    vcl::Window* pChild = pWindow->mpWindowImpl->mpFirstChild;
    while (pChild)
    {
        if (pChild->mpWindowImpl->mpParent != pWindow)
            return "Child-Window-Parent wrong";
        pChild = pChild->mpWindowImpl->mpNext;
    }

    return nullptr;
}
#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/dp_properties.cxx?id=db43ef00c12bc0f7fefd6d028c9a2ed8f771cd47'>sequence->vector in xmlscriptNoel Grandin 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann 2014-06-04desktop: fix includesThomas Arnhold 2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák 2012-12-30RTL_CONSTASCII_(U)STRINGPARAM removed in desktop/source/deployment/managerChr. Rossmanith 2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens 2012-11-19re-base on ALv2 code. Includes:Michael Meeks 2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann 2012-06-01nuke unused namespaceTakeshi Abe 2012-04-05Fix Prefer prefix ++/-- operatorsJulien Nabet 2011-11-27remove include of pch header in desktopNorbert Thiebaud 2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito 2011-03-12Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Thorsten Behrens 2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth 2010-07-05jl154 #i112934# replace old license headers introduced by CWS jl152Joachim Lingner 2010-05-28jl152 #i77196# new update behavior for extensionsJoachim Lingner 2010-04-19jl152 import 263446 from native0jl:#i77196# supporting licenses, suppress lic...Joachim Lingner