Beispiel #1
0
void wxDataViewSortedListModel::Resort()
{
    InitStatics();

    m_array.Clear();
    unsigned int n = m_child->GetNumberOfRows();
    unsigned int i;
    for (i = 0; i < n; i++)
        m_array.Add( i );
}
TagDocumentSource::TagDocumentSource(String tagName)
{
	InitStatics();

	// build the document
	document = new Document();
	Element* tagElement = document->CreateElement("tag-name");
	document->AppendChild(tagElement);
	tagText = document->CreateTextNode(tagName);
	tagElement->AppendChild(tagText);
}
///////////////////////////////////////////////////////
// RADEventsXML::RADEventsXML
//
// Initialize instance variables.
// Initialize static class vars, if first time
//
///////////////////////////////////////////////////////
RADEventsXML::RADEventsXML(void)
{
	InitStatics();

	m_pXMLDom = NULL;
	m_pIRNode =NULL;

	DWORD cchCurDir = MAX_PATH; 
	LPTSTR lpszCurDir; 
	TCHAR tchBuffer[MAX_PATH+1];
	lpszCurDir = tchBuffer; 
	GetCurrentDirectory(cchCurDir, lpszCurDir); 
	lpszCurDir[MAX_PATH] = '\0';

	strcpy(m_path , lpszCurDir);
	strcpy(m_path,".\\");
	strcpy(m_fname, szDefaultFilename);
	sprintf(m_fullpath,"%s%s", m_path, m_fname);
}
Beispiel #4
0
int main(int argc, const char** argv) {
  InitStatics();

  Context context;
  Res res;

  res = context.ProcessArgs(argc, argv);
  ExitIfError(res, context);

  string absolute_root;
  string canonical_currdir;
  res = FindRoot(&absolute_root, &canonical_currdir);
  ExitIfError(res, context);

  context.LogVerbose(StringPrintf("absolute_root = %s\n",
				  absolute_root.c_str()));
  context.LogVerbose(StringPrintf("canonical_currdir = %s\n",
				  canonical_currdir.c_str()));

  res = context.Init(absolute_root, canonical_currdir);
  ExitIfError(res, context);

  assert(context.GetConfig());
  context.Log(StringPrintf("dmb config: %s\n",
			   context.GetConfig()->name().c_str()));

  res = context.Resolve();
  ExitIfError(res, context);

  res = context.ProcessTargets();
  ExitIfError(res, context);

  context.Log("dmb OK\n");

  return 0;
}
Beispiel #5
0
Camera::Camera()
{
    InitStatics();
}
Beispiel #6
0
MainThreadInvoker::MainThreadInvoker()
{
  static const bool gotStatics = InitStatics();
  MOZ_ASSERT(gotStatics);
}