michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: ** RCBase.cpp - Mixin class for NSPR C++ wrappers michael@0: */ michael@0: michael@0: #include "rcbase.h" michael@0: michael@0: RCBase::~RCBase() { } michael@0: michael@0: PRSize RCBase::GetErrorTextLength() { return PR_GetErrorTextLength(); } michael@0: PRSize RCBase::CopyErrorText(char *text) { return PR_GetErrorText(text); } michael@0: michael@0: void RCBase::SetError(PRErrorCode error, PRInt32 oserror) michael@0: { PR_SetError(error, oserror); } michael@0: michael@0: void RCBase::SetErrorText(PRSize text_length, const char *text) michael@0: { PR_SetErrorText(text_length, text); } michael@0: michael@0: /* rcbase.cpp */