mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Refactoring, dialog work
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __PL_PASCALSTR_H__
|
||||
#define __PL_PASCALSTR_H__
|
||||
|
||||
#include "UnsafePascalStr.h"
|
||||
#include "UnsafePascalStr.h"
|
||||
|
||||
class PLPasStr;
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
@@ -12,11 +11,13 @@ namespace PortabilityLayer
|
||||
{
|
||||
public:
|
||||
PascalStr();
|
||||
PascalStr(size_t size, const char *str);
|
||||
PascalStr(size_t size, const char *str);
|
||||
explicit PascalStr(const PLPasStr &pstr);
|
||||
};
|
||||
}
|
||||
|
||||
#include <string.h>
|
||||
#include <string.h>
|
||||
#include "PLPasStr.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
@@ -31,6 +32,10 @@ namespace PortabilityLayer
|
||||
: UnsafePascalStr<TSize, true>(size, str)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
template<size_t TSize>
|
||||
PascalStr<TSize>::PascalStr(const PLPasStr &pstr)
|
||||
: UnsafePascalStr<TSize, true>(pstr.Length(), pstr.Chars())
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user